Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.8.0, 0.9.0
-
None
Description
When I run the following query using the utc_usec_to function, I met an out of range error.
Since this problem occurs only when converting to hour, it seems to relate with the time zone.
default> select utc_usec_to('hour', (TIMESTAMP '2013-04-05 08:00:00')::INT8*1000); result: 1 rows (9 B) ?utc_usec_to ------------------------------- 1365116400000000 default> select utc_usec_to('hour', (TIMESTAMP '2013-04-05 09:00:00')::INT8*1000); Value 24 for hourOfDay must be in the range [0,23]