myusuf3 / delorean

Delorean: Time Travel Made Easy
http://delorean.rtfd.org/
MIT License
1.84k stars 128 forks source link

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

Open Lukas0907 opened 8 years ago

Lukas0907 commented 8 years ago

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'