[TYPO3-mvc] Bug on date time during saving/fetching process?
Federico Bernardin
typo3list at bernardin.it
Thu Nov 21 16:50:37 CET 2013
Hi guys,
There is a strange behavior in the datetime conversion process.
During saving a datetime property in the Backend Object function getPlainValue the datetime is converted to format Y-m-d H:i:s and saved into db.
During mapping properties process in the mapDateTime of DataMapper the value from database is converted to UTC timezone and then converted into default timezone. This last process is correct only if I saved the datetime in UTC format, but the saving mechanism doesn't work in this way.
So when TYPO3 saves datetime to database it uses the standard timezone format of datetime, instead when it load datetime from database it supposed the datetime was saved in UTC format.
I'm using Europe/rome as my server datetime.
In my opinion should be the same process in saving and loading data.
Is there another bug similar or I should open a bug in forge?
Thanks a lot.
Cheers
federico
More information about the TYPO3-project-typo3v4mvc
mailing list