Skip to content
Tcl Source Code History Of Ticket 940278ffffffffff
Login

History Of Ticket 940278ffffffffff

Artifacts Associated With Ticket 940278ffffffffff

  1. Ticket change [5543a5a91f] (rid 94104) by davidw on 2004-04-22 20:03:29:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      This script:
      ----
      if { ! [info exists env(TZ) ] } {
          set myTZ ""
      } else {
          set myTZ $env(TZ)
      }
      
      puts "Local time is [clock format [clock seconds]]"
      set env(TZ) GMT+8
      puts "Time in Eugene, Oregon is [clock format [clock
      seconds]]"
      set env(TZ) GMT-1
      puts "Time in Padua, Italy is [clock format [clock
      seconds]]"
      
      if { $myTZ == "" } {
          unset env(TZ)
      } else {
          set env(TZ) $myTZ
      }
      ----
      
      does not produce the desired results, in either 8.4.6
      or 8.5.
      
      kbk found that HAVE_TZSET is not tested for in the
      configure scripts, except for some crufty unix systems.
       He also proposed commenting out the calledTzset = 1;
      on or around line 285.
      
      Further bulletins as events warrant.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "davidw"
    9. subsystem initialized to: "06. Time Measurement"
    10. title initialized to: "env(TZ) has delayed effect on clock format"
    11. type initialized to: "Bug"
  2. Ticket change [ec51219ac5] (rid 103694) by davidw on 2004-04-23 03:44:02:

    1. icomment:
      Logged In: YES 
      user_id=240
      
      This works on my system (linux, modern kernel, modern glibc):
      
      #include <stdio.h>
      #include <stdlib.h>
      #include <time.h>
      
      int main()
      {
          time_t thetime = 0;
          struct tm *tms;
      
          time(&thetime);
          setenv("TZ", "GMT-1", 1);
          tms = localtime(&thetime);
          printf("padova hour %d\n", tms->tm_hour);
          setenv("TZ", "GMT+8", 1);
          tms = localtime(&thetime);
          printf("eugene hour %d\n", tms->tm_hour);
      
      }
      
      
      
    2. login: "davidw"
    3. mimetype: "text/plain"
    4. username: "davidw"
  3. Ticket change [5c7ce23346] (rid 115306) by davidw on 2004-04-24 04:15:33:

    1. icomment:
      Logged In: YES 
      user_id=240
      
      It seems as if the problem may be that localtime_r does not
      call tzset, as normal localtime does.
      
      Note that there are also some discrepencies between
      tclUnixThrd.c and tclUnixTime.c.  The first globally
      redefines localtime, whereas the second also checks if
      HAVE_LOCALTIME_R is defined.  This conflict ought to be
      resolved.
      
      
    2. login: "davidw"
    3. mimetype: "text/plain"
    4. username: "davidw"
  4. Ticket change [87e3a37ced] (rid 131777) by kennykb on 2004-05-15 04:44:12:

    1. closedate changed to: "2004-05-14T21:44:12"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Put in changes to call tzset whenever $env(TZ) changes.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"