Invalid timestamp errors with RDB$TIME_ZONE_UTIL.TRANSITIONS [CORE6281] #6523
Submitted by: @asfernandes
The way ticks are internaly calculated from timestamps causes problems with RDB$TIME_ZONE_UTIL.TRANSITIONS, as well possible (but unlikely) problems with timers.
The problem is that old timestamps ticks are negative and the time field is unsigned. When a negative field is used with % operator it produces negative result that is stored in time. In ExprNodes.cpp that is somewhat workarounded, but the code is also weird.
Timers are unlikely to be affected because from this moment to the future the current_timestamp is positive, but if clock is reverted it may be problematic.
The text was updated successfully, but these errors were encountered: