Skip to content

Commit 3f7a93f

Browse files
committed
Fixes astimezone() not returning a Pendulum instance
1 parent 07c0e68 commit 3f7a93f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pendulum/pendulum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2184,7 +2184,7 @@ def replace(self, year=None, month=None, day=None, hour=None,
21842184
)
21852185

21862186
def astimezone(self, tz=None):
2187-
return self._datetime.astimezone(tz)
2187+
return self.instance(self._datetime.astimezone(tz))
21882188

21892189
def ctime(self):
21902190
return self._datetime.ctime()

0 commit comments

Comments
 (0)