Skip to content

Commit 41e494d

Browse files
andy23512Conengmo
authored andcommitted
Change default date_options to 24 hour clock in TimestampedGeoJson (#914)
The default date format was ambiguous: 14:00 or 2 pm was shown as 02:00. This has been changed to a 24 hour format. The date format is now ISO8601 compatible (with a space as separator).
1 parent b7b31aa commit 41e494d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Added `FeatureGroupSubGroup` plugin (shtrom #875)
2020
- Added `duration` option to `TimestampedGeoJson` (andy23512 #894)
2121
- Added `zoom_control` to `Map` to toggle zoom controls as per enhancement (#795) (okomarov #899)
22+
- Change default `date_options` in TimestampedGeoJson (andy23512 #914)
2223

2324
API changes
2425

folium/plugins/timestamped_geo_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class TimestampedGeoJson(MacroElement):
130130

131131
def __init__(self, data, transition_time=200, loop=True, auto_play=True,
132132
add_last_point=True, period='P1D', min_speed=0.1, max_speed=10,
133-
loop_button=False, date_options='YYYY/MM/DD hh:mm:ss',
133+
loop_button=False, date_options='YYYY-MM-DD HH:mm:ss',
134134
time_slider_drag_update=False, duration=None):
135135
super(TimestampedGeoJson, self).__init__()
136136
self._name = 'TimestampedGeoJson'

0 commit comments

Comments
 (0)