Seems related to Unix time Epoch (1st jan 1970) http://en.wikipedia.org/wiki/Unix_time
I don't know how to get around that. You probably have to extend the tl_calendar_events table with a custom start/end dates fields that use a different date format than a unix timestamp.
Or perhaps you can make the fields signed that way the tstamp can be a negative and represent datetimes before 1970. I don't know if this will work, but you can try. To make the fields signed create a folder called calendar_changes and create a subfolder config. Inside that folder create a file called database.sql and add the following:
Code:
CREA TE TAB LE `tl_calendar_events` (
`startDate` int(10) signed NULL default NULL,
`endDate` int(10) signed NULL default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
*remove the spaces for the words create and table. you can't post that on this forum...
For Contao 3 you'd have to create the subfolder dca instead, copy tl_calendar_events and make it so only the two datefields remain, with their sql entries.
Bookmarks