Benedikt Spranger
15f304ab1c
Fix handling of events started before 1900
commit 15d01c8bed2d ("Store DTSTART and DTEND from user in shadow columns")
breaks handling of events started before 1900:
[19-Sep-2023 14:30:39 UTC] davical: BUG: :DAViCal Fatal Error: [42804] SQLSTATE[42804]: Datatype mismatch: 7 ERROR: column "dtstart_orig" is of type timestamp with time zone but expression is of type integer
[19-Sep-2023 14:30:39 UTC] ================= Stack Trace ===================
[19-Sep-2023 14:30:39 UTC] davical: LOG: :Response status 500 for PUT /<user>/home/6bb3a62b-43ae-4a21-bb83-fca84d9ef050.ics
[19-Sep-2023 14:30:39 UTC] davical: LOG: :***************** Response Header ****************
[19-Sep-2023 14:30:39 UTC] davical: LOG: headers:-->Server: 1.1
[19-Sep-2023 14:30:39 UTC] davical: LOG: headers:-->DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
[19-Sep-2023 14:30:39 UTC] davical: LOG: headers:-->DAV: extended-mkcol, bind, addressbook, calendar-auto-schedule, calendar-proxy
[19-Sep-2023 14:30:39 UTC] davical: LOG: headers:-->X-DAViCal-Version: DAViCal/1.1.12; DB/1.3.5
[19-Sep-2023 14:30:39 UTC] davical: LOG: headers:-->Content-type: text/plain; charset="utf-8"
[19-Sep-2023 14:30:39 UTC] davical: LOG: :******************** Response ********************
[19-Sep-2023 14:30:39 UTC] davical: LOG: response:-->DAViCal Fatal Error
Update dtstart_orig in these cases to avoid the database failure.
Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
2024-03-01 23:26:26 +13:00
..
2016-12-30 08:54:14 +01:00
2024-02-29 09:55:23 +13:00
2024-02-29 00:43:50 +13:00
2017-01-08 15:48:52 +01:00
2024-01-21 19:12:42 +13:00
2023-02-26 22:10:34 +01:00
2023-03-23 22:17:23 +01:00
2023-02-26 22:10:34 +01:00
2016-12-30 08:54:10 +01:00
2018-03-21 16:59:35 +01:00
2018-01-11 13:57:03 +00:00
2023-05-02 10:44:52 +00:00
2022-02-18 23:11:50 +13:00
2023-02-26 22:10:34 +01:00
2023-02-26 22:10:34 +01:00
2018-01-10 21:50:55 +00:00
2017-10-04 22:36:07 +02:00
2023-02-26 22:10:34 +01:00
2023-02-26 22:10:34 +01:00
2017-10-04 22:36:33 +02:00
2024-03-01 23:26:26 +13:00
2016-12-30 08:52:44 +01:00
2017-01-06 16:06:11 +01:00
2023-03-12 20:19:10 +01:00
2022-02-13 01:34:55 +13:00
2014-05-14 13:33:36 +02:00
2012-03-22 13:47:11 +13:00
2016-12-30 08:54:19 +01:00
2018-01-08 22:51:22 +01:00
2018-01-08 22:51:22 +01:00
2024-01-21 19:12:42 +13:00
2019-01-04 14:13:41 +13:00
2023-03-12 20:19:10 +01:00
2023-06-21 23:21:57 +00:00
2021-02-03 14:57:57 +00:00
2024-01-20 02:21:40 +00:00
2017-01-08 15:48:52 +01:00
2024-02-29 00:43:50 +13:00
2024-01-21 19:12:42 +13:00
2023-02-26 22:10:34 +01:00
2022-12-10 14:37:31 +13:00
2017-01-06 16:06:11 +01:00
2024-02-28 16:29:56 -05:00
2017-01-06 16:06:11 +01:00
2017-01-06 16:06:11 +01:00
2017-01-06 16:06:11 +01:00
2024-02-04 01:40:08 +13:00
2022-10-04 08:47:53 +02:00
2022-12-10 14:37:31 +13:00
2019-01-30 18:20:04 +01:00
2024-01-21 19:12:42 +13:00
2016-12-30 08:52:44 +01:00
2024-02-29 00:43:50 +13:00
2018-01-11 14:09:35 +00:00
2020-04-04 17:44:12 +02:00
2024-02-18 01:51:56 +13:00
2022-12-10 14:37:31 +13:00
2024-01-19 19:13:07 +13:00
2018-12-22 19:12:50 +01:00
2023-02-15 07:42:34 +00:00
2016-12-30 08:52:44 +01:00
2023-02-04 03:21:48 +00:00
2023-03-12 20:17:43 +01:00