mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
More removal of unneeded parentheses.
This commit is contained in:
@ -1136,7 +1136,7 @@ DetermineLocalTimeZone(struct tm *tm)
|
||||
|
||||
#if defined(HAVE_TM_ZONE)
|
||||
/* tm_gmtoff is Sun/DEC-ism */
|
||||
tz = -(tmp->tm_gmtoff);
|
||||
tz = -tmp->tm_gmtoff;
|
||||
#elif defined(HAVE_INT_TIMEZONE)
|
||||
tz = (tmp->tm_isdst > 0) ? TIMEZONE_GLOBAL - SECS_PER_HOUR : TIMEZONE_GLOBAL;
|
||||
#endif /* HAVE_INT_TIMEZONE */
|
||||
|
@ -217,7 +217,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, char **tzn)
|
||||
tm->tm_gmtoff = tx->tm_gmtoff;
|
||||
tm->tm_zone = tx->tm_zone;
|
||||
|
||||
*tzp = -(tm->tm_gmtoff); /* tm_gmtoff is Sun/DEC-ism */
|
||||
*tzp = -tm->tm_gmtoff; /* tm_gmtoff is Sun/DEC-ism */
|
||||
if (tzn != NULL)
|
||||
*tzn = (char *) tm->tm_zone;
|
||||
#elif defined(HAVE_INT_TIMEZONE)
|
||||
|
Reference in New Issue
Block a user