Skip to content
Tcl Source Code Artifact [ab6b5c77f0]
Login

Artifact [ab6b5c77f0]

Artifact ab6b5c77f088447a317db0b165df3121ec8873a9:

Ticket change [ab6b5c77f0] - New ticket [219026ffffffffff|219026ffff] <i>Daylight Savings Time goof</i>. by nobody on 2000-10-26 01:09:36.
D 2000-10-26T01:09:36
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4022\sBug\nVersion:\s8.3b1\nSubmitDate:\s'2000-01-14'\nLastModified:\s'2000-01-14'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sAll\nFixedDate:\s'2000-01-14'\nFixedInVersion:\s8.3b2\nClosedDate:\s'2000-10-25'\n\n\nName:\n\nDon\sPorter\n\n\n\nCVS:\n\n$Id:\sclock.test,v\s1.8\s2000/01/13\s00:12:33\sericm\sExp\s$\n\n\n\nComments:\n\nThis\sbug\sreport\sis\sreally\sfor\sTcl\s8.3b2.\s\sThe\sbug\sform\n\nneeds\supdating.\n\n\n\nThe\stests\sfor\sthe\snew\shandling\sof\sa\srelative\n\n[clock\sscan]\swhich\scrosses\sa\sDaylight\sSavings\sTime\sboundary\n\nare\s"hard\scoded"\sto\sthe\sPST\stime\szone.\s\sIn\sPST,\sthey\stest\n\nrelative\sscans\sbetween\s1999\sOct\s31\s00:00:00\sPST\sand\n\n1999\sNov\s1\s00:00:00\sPST,\swhich\sin\sfact\sstraddle\sa\sDST\sboundary.\n\n\n\nIn\sEST,\sthose\stimes\sare\s1999\sOct\s31\s02:00:00\sand\n\n1999\sNov\s1\s03:00:00,\swhich\sdo\snot\sstraddle\sa\sDST\sboundary.\n\n\n\nThe\spatch\schanges\sthe\stests\sso\sthey\swork\srelative\sto\n\nthe\slocal\stime\szone.\s\sI\sthink\sthey'll\swork\sanywhere\snow.\n\nI'm\scurious\swhether\sthe\srevised\stests\swill\swork\sproperly\n\nin\sjurisdictions\slike\sIndiana\sor\sArizona\swhich\sdo\snot\n\nobserve\sDST.\s\sA\stest\sthere\swould\sbe\sappreciated.\n\n\n\nObservedBehavior:\n\n$\smake\stest\n\n====\sclock-4.25\sclock\sscan,\sDST\sfor\sdays\sFAILED\n\n====\sContents\sof\stest\scase:\n\n\n\n\s\s\s\sclock\sscan\s"tomorrow"\s-base\s941353200\n\n\n\n----\sResult\swas:\n\n941439600\n\n----\sResult\sshould\shave\sbeen:\n\n941443200\n\n====\sclock-4.25\sFAILED\n\n\n\n\n\n====\sclock-4.26\sclock\sscan,\sDST\sfor\sdays\sFAILED\n\n====\sContents\sof\stest\scase:\n\n\n\n\s\s\s\sclock\sscan\s"yesterday"\s-base\s941443200\n\n\n\n----\sResult\swas:\n\n941356800\n\n----\sResult\sshould\shave\sbeen:\n\n941353200\n\n====\sclock-4.26\sFAILED\n\n\n\nDesiredBehavior:\n\nNo\stest\ssuite\sfailures.\n\n\n\nPatch:\n\nIndex:\sclock.test\n\n===================================================================\n\nRCS\sfile:\s/cvsroot/tcl/tests/clock.test,v\n\nretrieving\srevision\s1.8\n\ndiff\s-c\s-r1.8\sclock.test\n\n***\sclock.test\s\s2000/01/13\s00:12:33\s\s\s\s\s1.8\n\n---\sclock.test\s\s2000/01/14\s17:19:50\n\n***************\n\n***\s221,231\s****\n\n\s\s\s\s\s\s\s\s\s\s\s\s-format\s{%b\s%d,\s%Y\s%H:%M:%S}\s-gmt\strue\n\n\s\s}\s"Dec\s31,\s1999\s08:00:30"\n\n\s\stest\sclock-4.25\s{clock\sscan,\sDST\sfor\sdays}\s{\n\n!\s\s\s\s\sclock\sscan\s"tomorrow"\s-base\s941353200\n\n!\s}\s941443200\n\n\s\stest\sclock-4.26\s{clock\sscan,\sDST\sfor\sdays}\s{\n\n!\s\s\s\s\sclock\sscan\s"yesterday"\s-base\s941443200\n\n!\s}\s941353200\n\n\s\stest\sclock-4.27\s{clock\sscan,\sday}\sknownBug\s{\n\n\s\s\s\s\s\sclock\sformat\s[clock\sscan\s"Monday"\s-gmt\strue\s-base\s946627200]\s\\\n\n\s\s\s\s\s\s\s\s\s\s\s\s-format\s{%b\s%d,\s%Y\s%H:%M:%S}\s-gmt\strue\n\n---\s221,233\s----\n\n\s\s\s\s\s\s\s\s\s\s\s\s-format\s{%b\s%d,\s%Y\s%H:%M:%S}\s-gmt\strue\n\n\s\s}\s"Dec\s31,\s1999\s08:00:30"\n\n\s\stest\sclock-4.25\s{clock\sscan,\sDST\sfor\sdays}\s{\n\n!\s\s\s\s\sclock\sformat\s[clock\sscan\stomorrow\s\\\n\n!\s\s\s\s\s\s\s\s\s\s\s-base\s[clock\sscan\s"1999-10-31\s00:00:00"]]\s-format\s%H\n\n!\s}\s00\n\n\s\stest\sclock-4.26\s{clock\sscan,\sDST\sfor\sdays}\s{\n\n!\s\s\s\s\sclock\sformat\s[clock\sscan\syesterday\s\\\n\n!\s\s\s\s\s\s\s\s\s\s\s-base\s[clock\sscan\s"1999-11-01\s00:00:00"]]\s-format\s%H\n\n!\s}\s00\n\n\s\stest\sclock-4.27\s{clock\sscan,\sday}\sknownBug\s{\n\n\s\s\s\s\s\sclock\sformat\s[clock\sscan\s"Monday"\s-gmt\strue\s-base\s946627200]\s\\\n\n\s\s\s\s\s\s\s\s\s\s\s\s-format\s{%b\s%d,\s%Y\s%H:%M:%S}\s-gmt\strue\n\n\n\nPatchFiles:\n\ntests/clock.test\n\n\n\n\n\nYes,\sthe\stests\swere\shardcoded\sfor\sPST.\s\sI\sapplied\syour\spatch,\swith\sminor\smodification\s(I\sdropped\sthe\s-format\s%H\sand\smade\sthe\sexpected\sresult\s[clock\sscan\s"19991101\s00:00:00"]\sto\sbe\ssure\swe\swere\sgetting\sthe\scorrect\snumbers).\n\n-\seric\n\n--\s01/14/2000\sericm\n\n
J foundin obsolete:\s8.3b1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 48.\sNumber\sHandling
J title Daylight\sSavings\sTime\sgoof
J type Bug
K 219026ffffffffffffffffffffffffffffffffff
U nobody
Z 91f9c6382465ca54c4b6e33cdfddfec0