[TYPO3-mvc] getDate not getting the right Date

Frans Saris franssaris at gmail.com
Thu Mar 5 19:01:06 CET 2015


Hi Mohamed,

Do you use native datetime fields in db?
https://review.typo3.org/#/c/36786/

Gr. Frans
Op 5 mrt. 2015 16:15 schreef "bernd wilke" <t3ng at bernd-wilke.net>:

> Am 05.03.15 um 14:49 schrieb Mohamed Rebai:
>
>> Hi,
>>
>> In one of my models, i have a date field. I have a frontend form to edit
>> the data of this model table.
>>
>> For example, if in frontend i enter the date : 2015-03-16
>>
>> In the database i obtain : 2015-03-16
>> In the backend, in the TCA form i obtain : 2015-03-16
>> But in the frontend, when i display getDate(), i obtain 2015-03-15 !!
>>
>> Any idea ?
>>
>
> timezone chaos.
>
> depending on all participating code some respect timezones, some don't.
> and so you can have three differnt timezones (editor, server, visitor) a
> correction sometimes is appropiate, sometimes not.
>
> and also if all three timezones are identical one of the routines may
> adjust in the wrong way the result will be modified against the origin.
>
> you may find further info with searching for older threads as the problem
> occurs often.
>
> bernd
> --
> http://www.pi-phi.de/cheatsheet.html
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>


More information about the TYPO3-project-typo3v4mvc mailing list