httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@hyperreal.org
Subject cvs commit: apache-1.3/src/modules/standard mod_status.c
Date Wed, 06 May 1998 03:24:22 GMT
brian       98/05/05 20:24:21

  Modified:    src      CHANGES
               src/modules/standard mod_status.c
  Log:
  PR: 1551
  
  Standardized the time format printed out by mod_status, which now means it
  includes the time zone.
  
  Revision  Changes    Path
  1.822     +3 -0      apache-1.3/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/CHANGES,v
  retrieving revision 1.821
  retrieving revision 1.822
  diff -u -r1.821 -r1.822
  --- CHANGES	1998/05/06 02:29:46	1.821
  +++ CHANGES	1998/05/06 03:24:14	1.822
  @@ -1,5 +1,8 @@
   Changes with Apache 1.3b7
   
  +  *) Standardized the time format in mod_status to match that of other 
  +     places in the code (e.g. DATE_GMT)).
  +
     *) Fix handling of %Z in timefmt strings for those platforms with no time
        zone information in their tm struct. [Paul Eggert <eggert@twinsun.com>]
        PR #754
  
  
  
  1.87      +8 -3      apache-1.3/src/modules/standard/mod_status.c
  
  Index: mod_status.c
  ===================================================================
  RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_status.c,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- mod_status.c	1998/05/05 04:47:59	1.86
  +++ mod_status.c	1998/05/06 03:24:20	1.87
  @@ -136,6 +136,10 @@
   #define	MBYTE			1048576L
   #define	GBYTE			1073741824L
   
  +#ifndef DEFAULT_TIME_FORMAT 
  +#define DEFAULT_TIME_FORMAT "%A, %d-%b-%Y %H:%M:%S %Z"
  +#endif
  +
   module MODULE_VAR_EXPORT status_module;
   
   #ifdef STATUS
  @@ -327,10 +331,11 @@
   	ap_rvputs(r, "Server Version: ", ap_get_server_version(), "<br>\n",
   	       NULL);
   	ap_rvputs(r, "Server Built: ", ap_get_server_built(), "<br>\n<hr>\n",
  -	       NULL);
  -	ap_rvputs(r, "Current Time: ", asctime(localtime(&nowtime)), "<br>\n", NULL);
  -	ap_rvputs(r, "Restart Time: ", asctime(localtime(&ap_restart_time)), "<br>\n",
   	       NULL);
  +	ap_rvputs(r, "Current Time: ", ap_ht_time(r->pool, nowtime, DEFAULT_TIME_FORMAT, 0),

  +               "<br>\n", NULL);
  +	ap_rvputs(r, "Restart Time: ", ap_ht_time(r->pool, ap_restart_time, DEFAULT_TIME_FORMAT,
0), 
  +	       "<br>\n", NULL);
   	ap_rputs("Server uptime: ", r);
   	show_time(r, up_time);
   	ap_rputs("<br>\n", r);
  
  
  

Mime
View raw message