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

Delorean.now() accepts timezone while delorean.now() does not #93

Open
Lukas0907 opened this issue May 21, 2016 · 0 comments
Open

Delorean.now() accepts timezone while delorean.now() does not #93

Lukas0907 opened this issue May 21, 2016 · 0 comments

Comments

@Lukas0907
Copy link

The title says it all. This comes as a bit of a surprise and should be fixed, IMHO:

>>> import delorean
>>> delorean.Delorean.now(timezone='UTC')
Delorean(datetime=datetime.datetime(2016, 5, 21, 20, 44, 2, 572950), timezone='UTC')
>>> delorean.now(timezone='UTC')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: now() got an unexpected keyword argument 'timezone'
myusuf3 referenced this issue Oct 30, 2018
Allow passing a custom timezone to delorean.now().
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

No branches or pull requests

1 participant