Invalid DateTime strings in ical api output

I'm getting some odd DateTime entries that my eM Client can't parse for ical. Note the Created, DTStamp, Last-Modified times compared to the DTStart and DTEnd values. It's not just that particular pass, it's all of them.

Running on Synology with the native package, date is fine on the Syno. Submitted a troubleshooting run under b69a61c3-0500-4b1e-bfcf-47b02718371e.

http://:8089/api/v1/feed.ics?contentType=jobs

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//arran4//Golang ICS Library
METHOD:REQUEST
BEGIN:VEVENT
UID:Judge Judy%!(EXTRA string=1715986740-ch2.1)
CREATED:563461024T044421Z
DTSTAMP:563461024T044421Z
LAST-MODIFIED:563461024T044421Z
DTSTART:20240517T225900Z
DTEND:20240517T233100Z
SUMMARY:Judge Judy
DESCRIPTION:Bleachtastic Break-Up!\; Auburn Football Lights It Up?!\nSeason
  23\, Episode 204\n\nAn ugly fight breaks out when a man doesn't make hot
  chocolate fast enough for his lover.
END:VEVENT

I’ll have to look into this. For what it’s worth, we’re using a library to generate this, we’re not doing it by hand.

I'm assuming you were able to duplicate the results on your end? I've tried a full Delete and Recreate Database without any improvement and then waiting a day and I see the same malformed dates. I'll try a Re-Download guide and see if that shakes anything loose.

I see the library identifier is arran4/golang ICS Library? Is this the repo GitHub - arran4/golang-ical: A ICS / ICal parser and serialiser for Golang.?

This looks appropriate compared to the spec?

https://www.kanzaki.com/docs/ical/dtstamp.html

Edit: OH I SEE NOW

Fixed in the latest pre-release:

1 Like

Thanks!!

PS C:\Users\dan> curl http://memorybank.myds.me:8089/api/v1/feed.ics?contentType=jobs


StatusCode        : 200
StatusDescription : OK
Content           : BEGIN:VCALENDAR
                    VERSION:2.0
                    PRODID:-//arran4//Golang ICS Library
                    METHOD:REQUEST
                    BEGIN:VEVENT
                    UID:Jeopardy!%!(EXTRA string=1716256790-220)
                    CREATED:20240520T163417Z
                    DTSTAMP:20240520T163417Z
                    LAST...
RawContent        : HTTP/1.1 200 OK
                    X-Channels-Dvr-Identifier: UqV7LS...SDtAk=
                    Transfer-Encoding: chunked
                    Cache-Control: no-cache, no-store
                    Content-Type: text/calendar
                    Date: Mon, 20 May ...
Forms             : {}
Headers           : {[X-Channels-Dvr-Identifier, Uq...DtAk=], [Transfer-Encoding,
                    chunked], [Cache-Control, no-cache, no-store], [Content-Type, text/calendar]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : System.__ComObject
RawContentLength  : 15173