Skip to content

Default to UTC instead of to local timezone #4

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

Merged
merged 7 commits into from
May 21, 2018
Merged

Conversation

pineapplemachine
Copy link
Owner

@pineapplemachine pineapplemachine commented May 21, 2018

Currently experiencing some indecision regarding whether I should make this change

To use UTC prior to the PR you would need to pass in an extra argument:

strftime(date, format, 0)
strptime(timestamp, format, 0)

With this PR you can still use local time via:

strftime(date, format, "local")
strptime(timestamp, format, "local")

For the previous behavior, use:
strftime(date, format, "local")
strptime(timestamp, format, "local")
@pineapplemachine pineapplemachine added the type: polish The issue involves making existing functionality more usable. label May 21, 2018
@pineapplemachine pineapplemachine merged commit 95d617e into master May 21, 2018
@pineapplemachine pineapplemachine deleted the default-utc branch May 21, 2018 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: polish The issue involves making existing functionality more usable.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant