Skip to content

Clarification on usage of sqlalchemy-utc #16

Description

@raph90

Hi, I just wanted to check that I understand the use of this library so that I can use it correctly in my application.
From what I understand:

  • DateTime(timeZone=False) in SqlAlchemy will convert datetimes to UTC when storing, but will convert back (adjusting to the current server timezone) when retrieving data
  • Sqlalchemy-utc ensures that we store UTC time and get back UTC time (without the conversion to current server timezone). This allows us to manipulate the UTC timezone how we want.

Is that correct?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions