You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
QuestDB expects hours in timestamps in the 12-hour clock system to be between 00 - 11
.
It interprets 00:01 AM as one minute after midnight. However, the usual way to format 1 minute after midnight is 12:01 AM and not 00:01 AM. The 12-hour clock transitions from 12:59 AM to 01:00 AM. 🤯
It sounds counter-intuitive, the transition 1 hour after midnight looks abrupt. but it makes sense if you think about good ol' analog clock. See: https://en.wikipedia.org/wiki/12-hour_clock
A fix should change:
both the generic DateFormat parser and the specialized compiler
also the reverse part: timestamp printing
QuestDB version:
7.4.2
OS, in case of Docker specify Docker and the Host OS:
irrelevant
File System, in case of Docker specify Host File System:
irrelevant
Full Name:
Jaromir Hamala
Affiliation:
QuestDB
Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?
Yes, I have
Additional context
No response
The text was updated successfully, but these errors were encountered:
The 'hh' pattern stands 'Hour in am/pm (1-12)'
The original implementation was subtracting 1.
As a result it parsed e.g. 05:00 as if it was 04:00,
which is clearly wrong. It adds tests comparing 12-hour
clock parser/formatter with a refernce SimpleDateFormat from JDK.
Fixes#4502
To reproduce
This test fails:
QuestDB expects hours in timestamps in the 12-hour clock system to be between 00 - 11
.
It interprets 00:01 AM as one minute after midnight. However, the usual way to format 1 minute after midnight is 12:01 AM and not 00:01 AM. The 12-hour clock transitions from 12:59 AM to 01:00 AM. 🤯
It sounds counter-intuitive, the transition 1 hour after midnight looks abrupt. but it makes sense if you think about good ol' analog clock. See: https://en.wikipedia.org/wiki/12-hour_clock
A fix should change:
QuestDB version:
7.4.2
OS, in case of Docker specify Docker and the Host OS:
irrelevant
File System, in case of Docker specify Host File System:
irrelevant
Full Name:
Jaromir Hamala
Affiliation:
QuestDB
Have you followed Linux, MacOs kernel configuration steps to increase Maximum open files and Maximum virtual memory areas limit?
Additional context
No response
The text was updated successfully, but these errors were encountered: