Overview
| Artifact ID: | 1e4a9b2f74a891752301b47fca17226a8f3a2754 |
|---|---|
| Ticket: | 2049971fffffffffffffffffffffffffffffffff
clock command doesn't reflect Windows time zone changes |
| User & Date: | ferrieux on 2008-08-19 00:28:36 |
Changes
- closedate changed to: "2008-08-18T17:28:36"
- closer changed to: "ferrieux"
- icomment:
Logged In: YES user_id=496139 Originator: NO OK, in Windows you're right it is different in the absence of $::env(TZ). Here another consideration comes to play: performance. See the comment in library/clock.tcl: # GetSystemTimeZone -- #Stores the sustem time zone in the 'CachedSystemTimeZone' #variable, since determining it may be an expensive process. A simple workaround for you is then to unset ::tcl::clock::CachedSystemTimeZone before each of your calls to [clock format]. I think the trade-off is well chosen considering the rarity of timezone-tracking apps wrt simple apps who just want to display a time, and do it fast (because they are just logging timestamps for some quick event for example). For this reason I'm switching this to Pending. Feel free to kick it open again if you feel other argumentation is due.
- login: "ferrieux"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "ferrieux"