silverstripe-framework/docs/en
Ingo Schommer 1ec2abe75f Fixed timezone and normalised ISO handling
A few observations:
- ISO says “T” is optional (https://en.wikipedia.org/wiki/ISO_8601#cite_note-21),
- WHATWG says in the HTML5 spec that it’s optional (https://html.spec.whatwg.org/multipage/infrastructure.html#local-dates-and-times)
- W3C says it’s reqiured in 1997 (https://www.w3.org/TR/NOTE-datetime), but then later says it’s optional in its HTML5 spec (https://www.w3.org/TR/html5/infrastructure.html#floating-dates-and-times).
- Chrome doesn’t parse values with whitespace separators (requires "T")
- DataObject DBDatetime values and database columns use whitespace separators (and will have many devs relying on this format)
- MySQL only supports whitespace separators (https://dev.mysql.com/doc/refman/5.7/en/datetime.html)
- SQLite can parse both ways (https://sqlite.org/lang_datefunc.html)

So the goal here is to retain ORM/database compatibility with 3.x (whitespace separator),
while exposing "T" separators to the browser in HTML5 mode.

Regarding timezones, this fixes a regression where setValue() would not actually
apply the timezone (last $value assignment is ineffective now that sub fields are removed).
2017-04-26 22:55:29 +12:00
..
_images Swap out .Actions class for bootstrap .btn-toolbar (#5581) 2016-05-27 13:39:10 +12:00
00_Getting_Started API Replace SS_HOST with SS_BASE_URL 2017-04-20 22:28:57 +12:00
01_Tutorials DOCS Update docs to reference PageController without an underscore, implement some PSR-2 2017-01-11 09:59:28 +13:00
02_Developer_Guides Merge pull request #6824 from micmania1/patch-13 2017-04-21 15:18:22 +12:00
03_Upgrading DOCS Add note about using dotenv on SilverStripe Platform (#6602) 2017-02-07 17:14:34 +13:00
04_Changelogs Fixed timezone and normalised ISO handling 2017-04-26 22:55:29 +12:00
05_Contributing API Replace SS_HOST with SS_BASE_URL 2017-04-20 22:28:57 +12:00
index.md DOCS 3.2 : fixing api: links now that api: tag parser working 2016-02-17 18:02:38 -07:00