1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 10:20:45 +02:00

14 Commits

Author SHA1 Message Date
Nick Liu
23933885ca fix(datetimepicker): Handle manually entered dates with UNIX epoch
This supersedes commit 19578e9fee which attempted to fix the issue
but was limited to a specific date format (dd.mm.yyyy). The new
approach uses the datetimepicker's native parsing capabilities to
handle dates in any configured format.

When users manually typed dates in fields set with
`data-date-unix="true"` without clicking on the calendar widget, the
values weren't being converted to UNIX timestamps as expected. This
resulted in the date field not appearing to save its value.

The improved solution:
- Uses the picker's `getDate()` method to parse dates according to the
  configured format
- Properly handles timezone adjustments for datetime fields
- Includes better error handling and validation
- Works with all locale formats supported by the datetimepicker

Fixes #5412
2025-04-10 19:28:51 -03:00
Jimako
873966c5ce fix for date field without click on calendar 2025-04-10 19:28:47 -03:00
camer0n
c4b270c005 Closes #5292 - update Bootstrap datetimepicker 2024-06-29 12:59:38 -07:00
Cameron
bab26e7762 datetimepicker() assumes the timezone to be that of the browser, which can pose problems in some situations. Now we can set a different timezone for the datepicker input and the UTC value will be automatically adjusted. eg. writeParms = array(type='datetime', 'timezone'=>'America/Los_Angeles') 2018-05-25 19:00:55 -07:00
Cameron
d023cfc63c datepicker timezone fix. 2018-05-25 08:47:47 -07:00
Cameron
998a8fe7c3 JS datetimepicker() updated to latest version. Fixed datetimepicker() to respect the e107 timezone setting while saving as UTC. ie (admin > prefs > Date Display Options ) or the user's timezone setting (usersettings.php when the timezone user-extended field is enabled) . 2018-05-24 15:16:02 -07:00
Lóna Lore
4e5578fd8c Fix for Issue #2858. 2017-11-14 20:35:17 +01:00
lonalore
2d4ed8195d Fix for changeDate() not being fired when value manually altered. Issue #1695 2016-06-14 09:38:59 +02:00
lonalore
f74e7c15e9 Use JS behavior to initialize datepicker. 2016-06-09 11:50:45 +02:00
Jimmi08
1c3edfa709 update datetimepicker script issue #1226 2016-02-18 19:52:04 +01:00
Cameron
03fb11dfc0 Issue #1157 - Should fix datepicker locale issue. 2015-07-26 17:33:15 -07:00
Cameron
df92643280 Issue #1157 - Glyphs missing in bootstrap calendar. 2015-07-26 16:52:16 -07:00
Cameron
beca1115c5 Closes #108, Issue #133 and may correct Issue #335 - Datepicker updated and should now be working with times also. eg. 7:30PM 2013-05-25 16:06:51 -07:00
Cameron
1830401b08 Should fix part of the datepicker issue #133 2013-03-16 18:35:20 -07:00