silverstripe-framework/tests/php/Forms
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
..
CheckboxFieldtest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
CheckboxSetFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
DatetimeFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
EmailFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
EmbedShortcodeProviderTest API Update embed/embed to 3.0 2017-04-04 10:20:08 +12:00
FormFactoryTest API Split out SilverStripe\ORM\Versioned into new module 2017-03-27 11:03:39 +13:00
FormFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FormScaffolderTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FormTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
GridField Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
HTMLEditor Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
ListboxFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
MoneyFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
NumericFieldTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
CheckboxFieldTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
CheckboxSetFieldTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
CheckboxSetFieldTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
CompositeFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
ConfirmedPasswordFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
CurrencyFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
DateFieldTest.php MERGE 2017-04-03 12:11:21 +12:00
DatetimeFieldTest.php Fixed timezone and normalised ISO handling 2017-04-26 22:55:29 +12:00
DropdownFieldTest.php API Refactor Form request handling into FormRequestHandler 2017-03-10 15:04:33 +13:00
EmailFieldTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
EmbedShortcodeProviderTest.php API Update embed/embed to 3.0 2017-04-04 10:20:08 +12:00
EnumFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FieldGroupTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FieldListTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FileFieldTest.php API Refactor Form request handling into FormRequestHandler 2017-03-10 15:04:33 +13:00
FormActionTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FormFactoryTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
FormFactoryTest.yml Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
FormFieldTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
FormScaffolderTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
FormScaffolderTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
FormSchemaTest.php Fix tests related to date time 2017-04-26 22:45:07 +12:00
FormTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
FormTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
GroupedDropdownFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
InlineFormActionTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
ListboxFieldTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
ListboxFieldTest.yml API Namespace framework tests 2016-11-23 19:25:12 +13:00
LookupFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
LookupFieldTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00
MoneyFieldTest.php Remove TestListener and rely on PHPUnits APIs 2017-03-30 11:46:58 +13:00
NullableFieldTests.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
NumericFieldTest.php API Create SeparatedDateField 2017-02-15 11:07:58 +13:00
OptionsetFieldTest.php API Refactor Form request handling into FormRequestHandler 2017-03-10 15:04:33 +13:00
PopoverFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
RequiredFieldsTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
SelectionGroupTest.php Fix unit tests 2017-04-26 16:03:52 +12:00
TextareaFieldTest.php Merge branch '3' 2016-12-28 14:30:54 +00:00
TextFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
TimeFieldTest.php MERGE 2017-04-03 12:11:21 +12:00
TreeDropdownFieldTest.php API Major refactor of Hierarchy into MarkedSet 2017-04-13 16:27:13 +12:00
TreeDropdownFieldTest.yml Move files to psr-2 standard locations 2016-11-23 19:25:12 +13:00