Skip to content

Commit

Permalink
Merge bfd3611 into d4c6212
Browse files Browse the repository at this point in the history
  • Loading branch information
jswhit committed Nov 15, 2020
2 parents d4c6212 + bfd3611 commit dfbee1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changelog
Expand Up @@ -10,6 +10,8 @@ version 1.3.0 (release tag v1.3.0rel)
digits can be handled.
* Change default calendar in cftime.date2num from 'standard' to None
(calendar associated with first input datetime object is used).
* add `cftime.datetime.tzinfo=None` for compatibility with python datetime
(issue #208).

version 1.2.1 (release tag v1.2.1rel)
=====================================
Expand Down
2 changes: 2 additions & 0 deletions cftime/_cftime.pyx
Expand Up @@ -913,6 +913,7 @@ The default format of the string produced by strftime is controlled by self.form
cdef readonly str calendar
cdef readonly int _dayofwk, _dayofyr
cdef readonly bint has_year_zero
cdef readonly object tzinfo

# Python's datetime.datetime uses the proleptic Gregorian
# calendar. This boolean is used to decide whether a
Expand All @@ -933,6 +934,7 @@ The default format of the string produced by strftime is controlled by self.form
self.microsecond = microsecond
self._dayofwk = dayofwk
self._dayofyr = dayofyr
self.tzinfo = None
if calendar:
calendar = calendar.lower()
if calendar == 'gregorian' or calendar == 'standard':
Expand Down

0 comments on commit dfbee1a

Please sign in to comment.