Ticket #970 (new defect)

Opened 5 years ago

Last modified 3 years ago

pattern YYYYMMDD does not work on windows

Reported by: assefa Assigned to: assefa
Priority: high Milestone: FUTURE
Component: WMS Server Version: 4.3
Severity: normal Keywords:
Cc:

Description

due to implementation of the local strptime.c used on windows the pattern
YYYYMMDD does not work. The parser expects some kind of non numerical delimiter
between the diffrent part of the date.

Change History

10/18/04 18:29:07 changed by assefa

  • owner changed from mapserverbugs to assefa.
  • milestone set to FUTURE.
I am not modifying strptime for now. Will revisit.

10/04/06 09:26:00 changed by nsavard@mapgears.com

The msautotest tests for this time format have been disable for now since we
could not run them on Linux and Windows, and get the same results.  Just a note
to reactivate the msautotest tests related to this time format when this bug
will be fix.

We are concerned with the following tests:

#
#Pattern 1 "%Y%m%d
#
# Note:  Pattern 1 "%Y%m%d"  : does not work (on windows at least) : problem
with strptime (parsing of the year is done like this (line 408) ret = strtol (buf,
&s, 10) (where buffer =20040101 so the return year is 20040101
#
# Draw a layer by using single time value
#
# RUN_PARMS: wms_time_pattern1a.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101'
> [RESULT_DEMIME]
#
# Draw a layer by using multiple time values
#
# RUN_PARMS: wms_time_pattern1b.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101,20040102'
> [RESULT_DEMIME]
#
# Draw a layer by using a range time values
#
# RUN_PARMS: wms_time_pattern1c.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101/20040102'
> [RESULT_DEMIME]
#
# Draw a layer by using multiple ranges time values
#
# RUN_PARMS: wms_time_pattern1d.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern1&Time=20040101/20040102,20040103/20040104'
> [RESULT_DEMIME]
#
#Pattern2 : "%Y-%m-%dT%H:%M:%SZ"
#
# Draw a layer by using multiple ranges time values
#
# RUN_PARMS: wms_time_pattern2d.png [MAPSERV]
QUERY_STRING='map=[MAPFILE]&SERVICE=WMS&VERSION=1.1.0&REQUEST=GetMap&LAYERS=pattern2&Time=20040101/20040102,20040103/20040104'
> [RESULT_DEMIME]
#