[TYPO3-core] RFC: #12652: Value Preview of empty timestamp shows "01-01-70 (-40 yrs) "

Dmitry Dulepov dmitry.dulepov at gmail.com
Mon Dec 7 12:17:27 CET 2009


Hi!

On 07/12/2009 13:13, David Bruchmann wrote:
> Sorry for one silly, clearing question: is it possible to assign
> negative values in date/timefields (date/time before 1970) ?

Usually the field defined as int, not as unsigned. Thus you can put negative values there. PHP's date() will accept negative values> There will be a problem begins if you pass this value to JavaScript's Date class. It does not accept negative time stamps. But this is a rare case.

Still I think that using proper data types in the database is very important. It is like using proper tool for the job and it is gives a good professional impression about the product.

-- 
Dmitry Dulepov
"Trust me, I am a doctor!" (c) Gregory House, M.D.


More information about the TYPO3-team-core mailing list