-
-
Notifications
You must be signed in to change notification settings - Fork 412
Closed
Description
From FAQ.
It also removes the notion of naive datetimes: each Pendulum instance is timezone-aware and by default in UTC for ease of use.
But from my test, seems dfault timezone is local machine's timezone, my machine's time zone is 'Asia/Shanghai'
>>> pendulum.now()
<Pendulum [2018-01-05T15:51:55.975424+08:00]>
>>> pendulum.now('Asia/Shanghai')
<Pendulum [2018-01-05T15:52:02.086741+08:00]>
>>> pendulum.now().in_timezone('UTC')
<Pendulum [2018-01-05T07:52:27.614535+00:00]>
>>>
So now() has same result like now('Asia/Shanghai'), not utc
Metadata
Metadata
Assignees
Labels
No labels