Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: aa51584a87f7ff9cd12a39275d267216de8fea01
Ticket: 2049971fffffffffffffffffffffffffffffffff
clock command doesn't reflect Windows time zone changes
User & Date: kennykb on 2008-08-26 02:31:01
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    Originator: NO
    
    Sorry about the delayed response, it's vacation time here...
    
    One thing that would be possible, if the message pump is going, would be to intercept the WM_SETTINGCHANGE message, and use it to trigger clearing the cached time zone.  This should incur run-time cost only when the time zone changes (and at initialization).
    
    This approach would require each interpreter that has 'clock.tcl' in place to have an async notification window to receive the message and process it.  This is a bit nasty, since we don't yet have anything in place that handles notifications at this sort of global level.  If you're interested in pursuing this approach, tclWinDde.c and tclWinSock.c both have code that creates a notification window (in the one case, to handle DDE messages, in the other, to trigger events on sockets).  
    
    Since time zone change is such a rare event, I didn't think it was worth the effort to do this stuff at the time I implemented [clock].  If this becomes a recurring complaint, perhaps we should revisit the decision.
    
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"