Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#649 closed enhancement (worksforme)

Add Variable for ISO Time

Reported by: Igal Sapir Owned by:
Priority: major Milestone:
Component: nginx-core Version: 1.7.x
Keywords: Cc:
uname -a: 'uname' is not recognized as an internal or external command (on Windows)
nginx -V: 1.7.6

Description

It is very useful to have the date/time in sortable format, i.e. yyyy-MM-dd'T'HH:mm:ssZ

This is useful for both logging and interaction with other systems. Currently the only way to achieve that is by using $local_time with 4 separate map() instructions, which is very inefficient.

The current $local_time, which is in "Common Log Format" is extremely old and obsolete IMO.

This should be very simple to implement for nginx and will add a lot of productivity for many users who need to interact with other systems.

Thank you

Change History (3)

comment:2 by Maxim Dounin, 9 years ago

Resolution: worksforme
Status: newclosed

comment:3 by Igal Sapir, 9 years ago

My apologies. I was not aware of that variable and for some reason I missed it when was searching for date/time variables.

Thank you.

Note: See TracTickets for help on using tickets.