Hello,
I am running a webiste with some events stored in it. Among others, the events have two TVs [tt]eventStart[/tt] and [tt]eventEnd[/tt]. Both were initially set as input type [tt]Date[/tt] and ouput [tt]Date formatter[/tt] (with standard values).
All works fine up to here.
In the database, the date values are stored as "readable" strings, i.e. "27-08-2009 10:33:00" for now. The format may result from the language setting in the manager, it is german. It is the same format like in the input fields in the manager.
Meanwhile I have changed the output to [tt]Unixtime[/tt]. I adjusted my few own snippets so that they work with Unixtime values. The values in the database were not changed by this change.
But when I now create a new event and set a date for [tt]eventStart[/tt], the resulting Unixtime value is wrong. In the database I can read the correct date value (exactly as I picked it with the date selector). The format in the database is exatcly the same as for the "old" events. But when I (i.e. my snippets or Ditto) now retrieve the TV value as Unixtime, the resulting value is completely wrong. The date is in the year 2022 (instead of 2009). In detail: I picked 2009-10-16 8:15:00 but the Unixtime value represents the date 2022-04-01. When I go to edit the event, I can see the correct date that I had picked before.
I have no explanation for this behavior.
My big, big problem is: Shortly after I had changed the output from Date formatter to Unixtime, I updated the complete MODx Manager from 0.9.6 to 1.0.0. And I don’t know, if the problem already existed in 0.9.6, because I didn’t create new events in the meantime.
As always, any ideas of this great community are very much appreciated

Thank you
Martin