How do I change the date/time format used in Smarts, do the following:
Examples
SM_DATETIME_FORMAT=SI_DAT_LOCALE_NEUTRAL
1969/12/31 20:00:42SM_DATETIME_FORMAT=SI_DAT_SHORT
31/12/69 20:00SM_DATETIME_FORMAT=SI_DAT_MEDIUM
31 d©c. 1969 20:00:42SM_DATETIME_FORMAT=SI_DAT_LONG
31 d©cembre 1969 20:00:42 HMG-05:00SM_DATETIME_FORMAT=SI_DAT_FULL
mercredi 31 d©cembre 1969 20:00:42 tats-Unis (New York)SM_DATETIME_FORMAT=SI_DAT_DEFAULT
31 d©cembre 1969 20:00:42 HMG-05:00SM_DATETIME_FORMAT=
31 d©cembre 1969 20:00:42 HMG-05:00SM_DATETIME_FORMAT=bogus
31 d©cembre 1969 20:00:42 HMG-05:00SM_DATETIME_FORMAT=SI_DAT_UTC
1970/01/01 01:00:42SM_DATETIME_FORMAT=SI_DAT_ISO8601
1970-01-01T01:00:42.000ZSM_DATETIME_FORMAT=SI_DAT_CUSTOM (see Notes)
SM_FORMAT_DATETIME="%d-%b-%Y %X %p %Z"
18-Jun-2012 08:16:16 AM EDT
From the 9.1 release notes:
In earlier releases, the SM_FORMAT_DATETIME environment variable was used to specify the format of timestamps in the log files. Because of internationalization changes, support for the format was dropped in Foundation 9.0. This resulted in changes of how date and time were written to the log files and in turn affected custom parsing scripts implemented by some users.
To fix the issue, a date and format mode is added back (in 9.1) which recognizes the old SM_FORMAT_* environment variables and outputs the date and time in the requested formats. Because the formats are only meaningful under English locales, it is recommended not to use them in favor of the other date time formats supported on Foundation 9.0.