[BUGFIX] DatePicker can't handle minDate and maxDate 92/36892/3
authorNicole Cordes <typo3@cordes.co>
Fri, 13 Feb 2015 22:46:40 +0000 (23:46 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 14 Feb 2015 14:07:25 +0000 (15:07 +0100)
commit8567808da72002fc5462507d5b85468c4babb0cd
tree5ed7b42c9b30503a5107ede959d5ad8c049b06d2
parent26fce78c6300537b8f47cda66f782b1f16b2a57e
[BUGFIX] DatePicker can't handle minDate and maxDate

The Bootstrap DatePicker expects the min and max dates to be formatted
in the format defined in the options. Currently both dates are filled
with an unix timestamp. These can't be converted to a date object (moment
object) and the date picker is completely disabled.

This patch adds the conversion of unix timestamp to the right format
before the Bootstrap DatePicker is initialized.

Releases: master
Resolves: #65068
Change-Id: Ie8143efb537067dd89cfb42aa477f63b8c07f693
Reviewed-on: http://review.typo3.org/36892
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/backend/Resources/Public/JavaScript/DateTimePicker.js