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

Handle exception when timezone is localtime #2264

Merged
merged 1 commit into from Dec 22, 2018

Commits on Dec 17, 2018

  1. Handle exception when timezone is localtime

    The configuration property `timezone` in `postgresql.conf` can be
    set to a special value of `localtime` to indicate that PosgreSQL
    should use the timezone of the host system.
    
    Unfortunately, when this value is set, we do not have sufficient
    information to determine the actual timezone of the server because
    `SHOW timezone` itself returns `localtime`.
    
    This value is not well-documented, but is also unlikely to be
    encountered very often, so we identify the exception and construct
    a new `DateTimeZoneNotFoundException` with a more informative
    message that includes mitigations that can be applied on either
    the server or the client.
    
    See: npgsql/efcore.pg#578
    austindrenski committed Dec 17, 2018
    Copy the full SHA
    50a50e3 View commit details
    Browse the repository at this point in the history