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

Add proper timezone support #49

Merged
merged 5 commits into from Oct 28, 2018

Conversation

pieterdd
Copy link
Contributor

  • When passing in a datetime object with a timezone, adjust system clock
    correctly.
  • tz_offset is still supported when passing in a string as timestamp.
  • When passing in a datetime with timezone info, tz_offset is
    unsupported.

@simon-weber
Copy link
Owner

Sorry for taking a while to get to this. It looks pretty reasonable; I'll have time to play around with it this weekend.

@simon-weber
Copy link
Owner

Look good! I added some minor changes. Let me know what you think; if they're cool I'll go ahead and merge.

libfaketime/__init__.py Outdated Show resolved Hide resolved
@pieterdd
Copy link
Contributor Author

Rebasing to remove the commit and its revert because they cancel each other out. Previous HEAD of this branch: 25205fd

@pieterdd pieterdd force-pushed the normalize-time-zone branch 2 times, most recently from 6134f65 to 8599706 Compare October 28, 2018 09:20
Pieter De Decker and others added 5 commits October 28, 2018 10:20
- When passing in a datetime object with a timezone, adjust system clock
correctly.
- tz_offset is still supported when passing in a string as timestamp.
- When passing in a datetime with timezone info, tz_offset is
unsupported.
@pieterdd
Copy link
Contributor Author

This branch is good to go as far as I'm concerned, assuming the build passes. An hour after I last pushed a commit, the Travis build was still queued so I don't know yet.

@simon-weber simon-weber merged commit 8230bdb into simon-weber:master Oct 28, 2018
@simon-weber
Copy link
Owner

Thanks! I'll cut a release for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants