metomi / isodatetime

:date: :watch: Python ISO 8601 date time parser and data model/manipulation utilities
GNU Lesser General Public License v3.0
37 stars 20 forks source link

`Timepoint._get_dump_format()` broken #197

Open MetRonnie opened 2 years ago

MetRonnie commented 2 years ago

Instead of CCYY, it uses the year itself

>>> timepoint = TimePoint(year=2010, month_of_year=3, hour_of_day=10, time_zone_hour=-3)
>>> timepoint._get_dump_format()
'2010-MM-DDThh:mm:ss+hh:mm'

This might not be currently affecting anything if _get_dump_format() is only used for dumping/stringifying TimePoints, as the year would replace CCYY anyway.