ORIENT/modules/backend
Samuel Georges e772e87de5 Complete rebuild of datepicker form widget
The datepicker now handles timezones and locale mainly on the client side. When a user selects a date/time, the value is chosen in their timezone preference, the script will then convert the value to the application timezone (UTC) for storage in the database. The reverse is true: when the value is loaded, it is converted from UTC to the user preference. The entire process is seamless. Dates are also formatted in the locale preference.

Example scenario: This fixes the issue when selecting the blog post published date. In some cases, the date could be set to 24th April but the server time is 23rd April, so the post appears unpublished against the user's intent.

There is still some issues around DATE and TIME column types stored in the database. It is best to always use TIMESTAMP/DATETIME to retain the timezone conversions. DATE will reset the time to 00:00 UTC which can cause issues and TIME does not play nicely with Carbon at all. We should still try to add support for these columns in the datepicker, even though they are not recommended.
2016-04-24 09:33:39 +10:00
..
assets Complete rebuild of datepicker form widget 2016-04-24 09:33:39 +10:00
behaviors Add hasFields methods 2016-04-23 05:13:08 +10:00
classes Combine editor preferences and backend preferences 2016-04-23 05:31:05 +10:00
controllers Combine editor preferences and backend preferences 2016-04-23 05:31:05 +10:00
database Remove Illuminate references 2016-02-23 13:46:57 +11:00
facades Fixes issue preventing CMS AJAX from returning arrays 2015-04-28 19:31:38 +10:00
formwidgets Complete rebuild of datepicker form widget 2016-04-24 09:33:39 +10:00
helpers Introduce a new localized date control 2016-04-23 13:17:04 +10:00
lang Combine editor preferences and backend preferences 2016-04-23 05:31:05 +10:00
layouts Pass the app timezone for conversions 2016-04-24 05:36:02 +10:00
models Move menu mode to its own tab 2016-04-23 13:17:40 +10:00
skins Remove cms.tempDir - use temp_path() 2015-02-07 15:42:20 +11:00
traits clearAssetDefinitions -> flushAssets 2016-04-12 18:04:15 +10:00
views Update refs to flash message script 2015-05-28 20:33:49 +10:00
widgets Introduce a new localized date control 2016-04-23 13:17:04 +10:00
ServiceProvider.php Combine editor preferences and backend preferences 2016-04-23 05:31:05 +10:00
composer.json ~1.0 -> dev-develop 2016-04-01 14:07:43 +11:00
routes.php Add hooks to the cms/backend route definitions 2015-05-02 13:53:05 +10:00