Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify date handling #119

Merged
merged 3 commits into from Oct 23, 2020
Merged

Commits on Jul 7, 2020

  1. Simplify date handling

    A major backwards-compatibility break, unfortunately.
    
    The binary parser’s approach of creating a local timestamp then adjusting it by its timezone offset to get the same components in UTC just doesn’t work, producing the wrong results around daylight saving transitions, for example. But even when it’s fixed to work as well as the text parser does, some times are still completely unrepresentable because they don’t exist in local time (daylight saving transitions are, again, an example of this). The more reliable way is:
    
    - `timestamptz` represents an instant in time
    - `timestamp` preserves its components in UTC
    - `date` remains a string
    charmander committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    4054131 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. Round to nearest millisecond in binary timestamp parser

    to match the new postgres-date@1.0.5 behavior, compared to 1.0.4.
    charmander committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    eff26e4 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2020

  1. Configuration menu
    Copy the full SHA
    f1778a0 View commit details
    Browse the repository at this point in the history