14 Commits

Author SHA1 Message Date
Taine Riley
97de9da948
fix: make 'now' button consistent (#5716) 2021-08-17 12:48:29 +03:00
Vladislav Shkodin
39f113715a
chore: update prettier (#5412) 2021-05-19 15:39:35 +03:00
renovate[bot]
a2735b5fd6
fix(deps): update dependency react-datetime to v3 (#5383) 2021-05-18 10:37:07 +03:00
Vladislav Shkodin
141a2eba56
refactor: convert function expressions to declarations (#4926) 2021-02-08 20:01:21 +02:00
Erez Rokah
cb2ad687ee
Feat: multi content authoring (#4139) 2020-09-20 20:30:46 +03:00
andreascm
88a5a8098e
fix: deprecate inconsistent config param case (#4172) 2020-08-31 14:25:48 +03:00
Nick Holden
ef5ff031da
feat: add pickerUtc option to datetime widget (#3721)
I have a field that I would like to contain just a date (with no specific
time). When I configure the datetime widget with sensible options for
a date-only field, dates are stored properly in the saved markdown,
but when I load those dates in the UI, I see the date before.

This is happening because the DateTime component from the
react-datetime library uses local timezones. It loads the date as the
start of day UTC and then converts to the local timezone, which is
going to be the previous day in any timezone with a negative UTC offset,
including all of the Americas.

This change adds a pickerUtc option to the datetime widget so that users
can specify when they would like the datetime picker to display times in
UTC rather than in the local timezone. By setting this new option to
true on date-only fields, users can ensure that everyone sees the same
date in the picker regardless of local timezones.
2020-05-13 11:44:01 +03:00
Tom Claes
79b8469337
feat(widget-datetime): add now to datepicker (#3484) 2020-04-12 18:17:01 +03:00
Eddie Webb
8cc5fcbb19
fix(widget-datetime): use default value when value is undefined (#3269) 2020-02-17 17:05:18 +02:00
Mauro Bieg
d058697644 fix(widget-date): allow empty value (#2705) 2019-10-23 14:01:25 -04:00
melbourne2991
65d49dae9a chore: update datetime widget and deprecate date widget (#2615) 2019-09-05 16:16:55 -04:00
Tony Alves
b4041d3971 chore: refine named exports (#2249) 2019-03-27 16:47:28 -04:00
Shawn Erquhart
ccef446d72
feat: upgrade to Emotion 10 (#2166) 2019-03-15 10:19:57 -04:00
Shawn Erquhart
e80a407cee migrate date and datetime widgets 2018-07-25 21:17:57 -04:00