Skip to content

WMS-T issues with TIME_RESOLUTION_MINUTE generating invalid SQL / WMS errors #7710

Done

Description

@akrherz

Whilst using Mapserver 8.6.6, I am observing some oddities with WMS-T time requests with minute resolution, this table attempts to summarize what I am finding.

Case Mapfile wms_timeformat CGI TIME= request example Result
1 "YYYY-MM-DDTHH:MMZ" TIME=2026-11-30T19:30Z msWMSSetTimePattern: WMS server error. Time value 2026-11-30T19:30Z given does not match the time format pattern.
2 "YYYY-MM-DDTHH:MM" TIME=2026-11-30T19:30Z msPostGISLayerWhichShapes(): Query error, generated SQL error "invalid input syntax for type timestamp: "2026-11-30T19:30Z:00"
3 "YYYY-MM-DDTHH:MM" TIME=2026-11-30T19:30 ✔️ works
4 "YYYY-MM-DDTHH:MMZ" TIME=2026-11-30T19:30 ✔️ properly fails with msWMSSetTimePattern: WMS server error. Time value 2026-11-30T19:30 given does not match the time format pattern.

I have a PR ready that hopefully addresses the first two cases.

Activity

  1. added 2 commits that reference this issue on Nov 30, 2026
    ccb836d
    de6bdc9
  2. added 2 commits that reference this issue on Dec 2, 2026
    acad77b
    ff792fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions