You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Codify supported WMS-T time formats and disallow others #7718
Summarizing some of my recent activity in this space.
ms_timeFormats ending with Z should have strict $ regex added #7715 denoted that for WMS-T time format regular expressions ending in Z, the regex should enforce that the string actually ends with Z and not allow trailing cruft. An open question though was what to do with the other regex's that do not enforce this.
WMS-T issues with TIME_RESOLUTION_MINUTE generating invalid SQL / WMS errors #7710 found bugs with specification of TIME_RESOLUTION_MINUTE and denoted an ugly edge case when content provided after the allowed time format was arbitrarily passed to the SQL query due to the regular expression only checking for a match at the beginning of the string.
This issue picks up where those two left off. Namely, this combination / problem exists
This is sub-optimal behaviour and also quasi-wrong as 2026-11-30T19:30Z should be cast to a timestamptz for postgresql. For my local US/Central database. Perhaps there is some UTC assumption happening somewhere that is making this work out...
I had an initial AI generated PR queued up for this, but it wasn't something I could attest to and I also wanted to flesh out more exactly what OGC WMS allows for. I'd welcome suggestions and hopefully this issue is not too vague to be considered repo spam.
Good grief, I just realized my database uses naive timestamps, so that's the magic that has been allowing this to work over the many years I have been running this config. Inbound TIME= values have to be UTC, any offsets are silently ignored with the timestamp used as UTC. This aspect of the issue may not be fixable without breaking folks. Mapserver would need to be told if the postgresql column is naive or not.
Activity
akrherz commentedon Dec 2, 2026
Good grief, I just realized my database uses
naivetimestamps, so that's the magic that has been allowing this to work over the many years I have been running this config. Inbound TIME= values have to be UTC, any offsets are silently ignored with the timestamp used as UTC. This aspect of the issue may not be fixable without breaking folks. Mapserver would need to be told if the postgresql column is naive or not.akrherz commentedon Dec 3, 2026
Here's a summary of how I believe things are broken or not broken or less broken :)
timestamp(naive UTC)19:30Ztimestamp(naive UTC)19:30Ztimestamp(naive UTC)19:30+05:00timestamp(naive UTC)19:30+05:00timestamptz19:30Ztimestamptz19:30Ztimestamptz19:30+05:00timestamptz19:30+05:00