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

Default to UTC in time parsing #5

Open
buren opened this issue Sep 16, 2018 · 0 comments
Open

Default to UTC in time parsing #5

buren opened this issue Sep 16, 2018 · 0 comments
Labels
good first issue Good for newcomers

Comments

@buren
Copy link
Owner

buren commented Sep 16, 2018

If no explicit time zone is present default to UTC in all places where we use Time#parse

If you're on a computer in CEST

time = Time.parse('2018-01-01 00:00')
# => 2018-01-01 00:00:00 +0100
# and not
# 2018-01-01 00:00:00 +0000

This is not the end of the world, for now, since for any serious use Blackcal will probably run on a server configured to be in UTC.

@buren buren added the good first issue Good for newcomers label Sep 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant