mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Use macros for time-based constants, rather than constants.
This commit is contained in:
@@ -4422,7 +4422,7 @@ timestamp_zone(PG_FUNCTION_ARGS)
|
||||
|
||||
if (type == TZ || type == DTZ)
|
||||
{
|
||||
tz = -(val * 60);
|
||||
tz = -(val * MINS_PER_HOUR);
|
||||
result = dt2local(timestamp, tz);
|
||||
}
|
||||
else
|
||||
@@ -4596,7 +4596,7 @@ timestamptz_zone(PG_FUNCTION_ARGS)
|
||||
|
||||
if (type == TZ || type == DTZ)
|
||||
{
|
||||
tz = val * 60;
|
||||
tz = val * MINS_PER_HOUR;
|
||||
result = dt2local(timestamp, tz);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user