Opened 20 years ago

Last modified 20 years ago

#993 new enhancement

Add [current_server_date] and [current_server_time] CGI variables

Reported by: charlie@… Owned by: sdlime
Priority: high Milestone: FUTURE
Component: MapServer CGI Version: unspecified
Severity: minor Keywords:
Cc:

Description

It would be a nice to have to be able to put a timestamp on each map that is 
produced. Of course it would be a really nice to have if we were able to 
specify date string types, etc.

Change History (1)

comment:1 by sdlime, 20 years ago

Milestone: FUTURE
op_sys: Windows XPAll
rep_platform: PCAll
Severity: normalenhancement
Not a bad idea, but it will have to wait a bit, most likely for the next release
although it would be introduced in the development version far sooner. There may
be a workaround for you now. The ID generated internally for a request is based
on the time and the process id. So using Javascript you could extract the time
in seconds and convert on the client. It's not a good work around, nor may it
even be possible but if you're in a bind...

I would propose something like:

[date format="%YYYY-%mm-%dd"] 

and something similar for time.

Steve
Note: See TracTickets for help on using tickets.