Example, when using TZ=Europe/Berlin
>>> import pendulum
>>> pendulum.now()
<Pendulum [2020-09-01T18:53:49.977333+02:00]>
>>> pendulum.now(tz='Europe/Berlin')
<Pendulum [2020-09-01T20:54:02.361281+02:00]>
>>> pendulum.now().timezone.name
'Europe/Berlin'
>>> pendulum.now(tz='Europe/Berlin').timezone.name
'Europe/Berlin'
The correct time was 18:53 (the one given without the tz parameter). It seems that, if tz is sent, it doesn't check what the system date timezone is and assumes it's on UTC, so it moved it to +2 when it shouldn't.
Example, when using TZ=Europe/Berlin
The correct time was 18:53 (the one given without the
tzparameter). It seems that, iftzis sent, it doesn't check what the system date timezone is and assumes it's on UTC, so it moved it to +2 when it shouldn't.