Skip to content

Use consistent datetime #47

Description

@LukasSkywalker

The application uses different methods to get the current date and time. Some of them ignore the timezone, some of them not. The application should be consistent in the use of date and timestamps.

Method Result
Time.zone.now Time in timezone set by config.time_zone, UTC otherwise
DateTime.now Date & Time in system timezone; ignores config.time_zone

If users deploy the application and set the application time zone (config.time_zone), the expiry dates might be wrong.

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

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions