1
0
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:
Bruce Momjian
2011-03-12 09:31:18 -05:00
parent 3d9f7ec1ff
commit 3a3f39fdc0
6 changed files with 46 additions and 41 deletions

View File

@@ -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