Rainer,

On 12/29/14 9:49 AM, rj...@apache.org wrote:
> Author: rjung
> Date: Mon Dec 29 14:49:41 2014
> New Revision: 1648352
> 
> URL: http://svn.apache.org/r1648352
> Log:
> BZ 54177: Status: Use numeric time stamps instead of
> textual ones to avoid non-well-formed XML output.
> 
> Textual timestamps are formatted according to locale
> settings and reencoding them to UTF-8 would be cumbersome.
> 
> Modified:
>     tomcat/jk/trunk/native/common/jk_status.c
>     tomcat/jk/trunk/xdocs/miscellaneous/changelog.xml
> 
> Modified: tomcat/jk/trunk/native/common/jk_status.c
> URL: 
> http://svn.apache.org/viewvc/tomcat/jk/trunk/native/common/jk_status.c?rev=1648352&r1=1648351&r2=1648352&view=diff
> ==============================================================================
> --- tomcat/jk/trunk/native/common/jk_status.c (original)
> +++ tomcat/jk/trunk/native/common/jk_status.c Mon Dec 29 14:49:41 2014
> @@ -204,10 +204,10 @@
>  #define JK_STATUS_WAIT_AFTER_UPDATE        "3"
>  #define JK_STATUS_REFRESH_DEF              "10"
>  #define JK_STATUS_ESC_CHARS                ("<>?\"")
> -#define JK_STATUS_TIME_FMT_HTML            "%a, %d %b %Y %X %Z"
> +#define JK_STATUS_TIME_FMT_HTML            "%Y-%m-%d %H:%M:%S %z"
>  #define JK_STATUS_TIME_FMT_TEXT            "%Y%m%d%H%M%S"
> -#define JK_STATUS_TIME_FMT_TZ              "%Z"
> -#define JK_STATUS_TIME_BUF_SZ              (80)
> +#define JK_STATUS_TIME_FMT_TZ              "%z"
> +#define JK_STATUS_TIME_BUF_SZ              (30)

It's a shame there is no strftime format specifier that allows for using
the name of the time zone in e.g. "zoneinfo" format (e.g.
America/New_York). By giving only the timezone offset (%z), we lose a
bit of information about which time zone is actually being used.

-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to