php - Timestamp before 1970 is saved as 0000-00-00 00:00:00 -


i have timestamp column corresponding model property. when try save timestamp before 1970 in table appears value of 0000-00-00 00:00:00.

am not using appropriate format? date more suitable? there workaround don't need change schema?

the unix epoch (or unix time or posix time or unix timestamp) number of seconds have elapsed since january 1, 1970 (midnight utc/gmt), not counting leap seconds (in iso 8601: 1970-01-01t00:00:00z).

if you're planning on using times fall previous date, recommend using date field.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -