diff options
author | Bruce Momjian <bruce@momjian.us> | 2011-03-12 09:31:18 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2011-03-12 09:35:56 -0500 |
commit | 3a3f39fdc00c6caa41d795475189ac844403b770 (patch) | |
tree | 2cee74a6ad8f09bec94434ce24ff0c30d154b662 /src/backend/utils/adt/timestamp.c | |
parent | 3d9f7ec1ffde399accda096da4df46b178e8b960 (diff) | |
download | postgresql-3a3f39fdc00c6caa41d795475189ac844403b770.tar.gz postgresql-3a3f39fdc00c6caa41d795475189ac844403b770.zip |
Use macros for time-based constants, rather than constants.
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
-rw-r--r-- | src/backend/utils/adt/timestamp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c index 1c2c1605899..45e70029e53 100644 --- a/src/backend/utils/adt/timestamp.c +++ b/src/backend/utils/adt/timestamp.c @@ -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 |