-
- Downloads
Consolidate several near-identical uses of mktime() into a single
routine DetermineLocalTimeZone(). In that routine, be more wary of broken mktime() implementations than the original code was: don't allow mktime to change the already-set y/m/d/h/m/s information, and don't use tm_gmtoff if mktime failed. Possibly this will resolve some of the complaints we've been hearing from users of Middle Eastern timezones on RedHat.
Showing
- src/backend/utils/adt/datetime.c 61 additions, 37 deletionssrc/backend/utils/adt/datetime.c
- src/backend/utils/adt/formatting.c 2 additions, 32 deletionssrc/backend/utils/adt/formatting.c
- src/backend/utils/adt/timestamp.c 3 additions, 52 deletionssrc/backend/utils/adt/timestamp.c
- src/include/utils/datetime.h 3 additions, 1 deletionsrc/include/utils/datetime.h
Loading
Please register or sign in to comment