Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3503ed3959e75c868ab7ff88e8a37d026abf38deaa093f6a761c39a695d5e166
Ticket: 00655c867eabd57ac3acd93bffe2f93799c12c89
ClockGetdatefieldsObjCmd(): avoid signed integer overflow and platform-dependent behavior
User & Date: chrstphrchvz on 2023-09-20 16:57:37
Changes

  1. icomment:
    I notice that <tt>::tcl::clock::GetSystemTimeZone</tt> is returning <tt>:localtime</tt> when running tests for the <tt>OPTS=static,mscvrt</tt> configuration (rather than e.g. <tt>:America/Chicago</tt>), which causes <tt>ConvertUTCToLocal()</tt> to use <tt>ConvertUTCToLocalUsingC()</tt> instead of <tt>ConvertUTCToLocalUsingTable()</tt>. I am guessing this is not intentional.
    
    However I wonder if clock-7.10 should still work with <tt>:localtime</tt>, or be constrained to not run under <tt>:localtime</tt>. Either way, having a similar test which forces <tt>:localtime</tt> could be useful.
    
  2. login: "chrstphrchvz"
  3. mimetype: "text/x-fossil-wiki"