Skip to content

Commit aaa7911

Browse files
committed
Update data structure example for date fieldtype
Times are now always stored alongside dates to ensure timezone conversions work properly.
1 parent 62148de commit aaa7911

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • content/collections/fieldtypes

content/collections/fieldtypes/date.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ Date fields have highly configurable user interfaces. They can be as simple as a
6868
Single dates are stored as a date/timestring. Ranges are stored as an array with a `start` and `end` key.
6969

7070
``` yaml
71-
date: 1983-10-01
72-
date_with_time: 1983-10-01 12:00:00
71+
date: 1983-10-01 12:00:00
7372
date_range:
74-
start: 2019-11-18
75-
end: 2019-11-22
73+
start: 2019-11-18 00:00
74+
end: 2019-11-22 00:00
7675
```
7776
7877
Dates are stored in your application's timezone.

0 commit comments

Comments
 (0)