diff options
| author | hobbs <hobbs> | 2002-05-29 00:19:39 (GMT) | 
|---|---|---|
| committer | hobbs <hobbs> | 2002-05-29 00:19:39 (GMT) | 
| commit | acc98cfd629f847b6e4b3e7eee967d7fe3f9bcdf (patch) | |
| tree | 29125ebe484614a6acad3335d784da4ad422b93a /unix/tclUnixTime.c | |
| parent | 255468e31d6c18b6e10f63c0d914101824c2ce7f (diff) | |
| download | tcl-acc98cfd629f847b6e4b3e7eee967d7fe3f9bcdf.zip tcl-acc98cfd629f847b6e4b3e7eee967d7fe3f9bcdf.tar.gz tcl-acc98cfd629f847b6e4b3e7eee967d7fe3f9bcdf.tar.bz2 | |
	* tests/clock.test: added clock-9.1
	* compat/strftime.c:
	* generic/tclClock.c:
	* generic/tclInt.decls:
	* generic/tclIntDecls.h:
	* unix/tclUnixTime.c: fix for Windows msvcrt mem leak caused by
	using an env(TZ) setting trick for in clock format -gmt 1.  This
	also makes %s seem to work correctly with -gmt 1 as well as
	making it a lot faster by avoid the env(TZ) hack.  TclpStrftime
	now takes useGMT as an arg.  [Bug #559376]
Diffstat (limited to 'unix/tclUnixTime.c')
| -rw-r--r-- | unix/tclUnixTime.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c index 8047858..5107062 100644 --- a/unix/tclUnixTime.c +++ b/unix/tclUnixTime.c @@ -9,7 +9,7 @@   * See the file "license.terms" for information on usage and redistribution   * of this file, and for a DISCLAIMER OF ALL WARRANTIES.   * - * RCS: @(#) $Id: tclUnixTime.c,v 1.12 2001/11/21 02:36:21 hobbs Exp $ + * RCS: @(#) $Id: tclUnixTime.c,v 1.13 2002/05/29 00:19:39 hobbs Exp $   */  #include "tclInt.h" @@ -303,7 +303,8 @@ TclpGetDate(time, useGMT)   *   * TclpStrftime --   * - *	On Unix, we can safely call the native strftime implementation. + *	On Unix, we can safely call the native strftime implementation, + *	and also ignore the useGMT parameter.   *   * Results:   *	The normal strftime result. @@ -315,11 +316,12 @@ TclpGetDate(time, useGMT)   */  size_t -TclpStrftime(s, maxsize, format, t) +TclpStrftime(s, maxsize, format, t, useGMT)      char *s;      size_t maxsize;      CONST char *format;      CONST struct tm *t; +    int useGMT;  {      if (format[0] == '%' && format[1] == 'Q') {  	/* Format as a stardate */ | 
