Faveod / arel-extensions

Extending Arel
MIT License
143 stars 24 forks source link

potsgres: default to UTC when formatting dates. #104

Closed stackmystack closed 7 months ago

stackmystack commented 7 months ago

In this PR 2 things happened for postgres:

  1. Casting to timestamps is done through timestamp without timezone.
  2. Converting timezones, when we only specify a string (the destination), considers that we're starting from UTC, and doesn't leave it to interpretation. If you want to specify the starting timezone, pass a hash.