Artifact
e517210df234a391aeb944caeb8c6a8e156522fb:
Ticket change
[e517210df2]
- New ticket
[218981ffffffffff|218981ffff] <i>clock scan tomorrow fails to handle daylight savings time ch</i>.
by
nobody on
2000-10-26 01:08:54.
D 2000-10-26T01:08:54
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s3441\sBug\nVersion:\s8.1.1\nSubmitDate:\s'1999-11-05'\nLastModified:\s'2000-01-12'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sOther\nOSVersion:\sBSD/OS\s4.0.1\nFixedDate:\s'2000-01-12'\nFixedInVersion:\s8.3b2\nClosedDate:\s'2000-10-25'\n\n\nName:\sRobert\sHare\n\nComments:\nIn\sour\scase\swe\sare\ssetting\stimers\sto\sgo\soff\sexactly\sat\smidnight\seach\n\s\s\s\sday.\s\sWe\suse\stomorrow\sto\n\s\s\s\scalculate\sthe\s#\sof\smilleseconds\sto\sset\sthe\sclock.\s\sOne\sworkaround\sis\sto\n\s\s\s\sdo\sall\scalculations\sand\suse\n\s\s\s\snoon\sas\sthe\sbasis\sfor\sdate\scaluculations.\s\sThis\sallows\sfor\sthe\sneeded\n\s\s\s\smargin\sfor\sdaylight\ssavings\n\s\s\s\stime\schanges\sas\swell\sas\sleap\ssecond\schanges.\n\s\s\s\s\n\s\s\s\sSome\ssample\scode:\n\s\s\s\s\n\s\s\s\sset\st\s[clock\sscan\s"[clock\sformat\s[clock\sseconds]\s-format\s"%m/%d/%Y"]\n\s\s\s\s12:00:00"\n\s\s\s\sclock\sscan\s"[clock\sformat\s[expr\s$t\s+\s86400]\s-format\s"%m/%d/%Y"]\n\s\s\s\s00:00:00"\n\s\s\s\s\n\s\s\s\sHappy\sHalloween,\sthis\sproblem\swill\soccur\sthis\sSunday.\s:-(\n\nReproducibleScript:\nThe\s"clock\sscan\stomorrow"\sfunction\swill\sfail\sfrom\s00:00\s-\s01:00\swhen\n\s\s\s\sgoing\soff\sdaylight\ssavings\stime.\n\s\s\s\sI\ssuspect\sthat\sother\srelative\stime\sfunctions\s(such\sas\syesterday)\swill\n\s\s\s\salso\shave\sproblems\swith\sdaylight\n\s\s\s\ssavings\stime\stransition\sdays.\n\s\s\s\s\n\s\s\s\sTo\sduplicate:\n\s\s\s\s\n\s\s\s\s%\sdate\s199910310000\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\sSet\sthe\ssystem\sclock.\n\s\s\s\s%\sdate\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\sConfirm\sdate\sset\n\s\s\s\scorrectly.\n\s\s\s\sSun\sOct\s31\s00:00:03\sMDT\s1999\n\s\s\s\s%\stclsh8.1\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\sEnter\sTcl\n\s\s\s\s%\sclock\sseconds\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\sGet\sthe\sclock\svalue\n\s\s\s\s941349616\n\s\s\s\s%\sclock\sscan\stomorrow\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\sGet\sclock\svalue\sfor\stomorrow\n\s\s\s\s941436024\n\s\s\s\s%\sexit\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\sExit\sTcl\n\s\s\s\s%\sdate\s-r\s941436024\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s-\sDisplay\sclock\svalue\sfrom\s"clock\n\s\s\s\sscan\stomorrow".\n\s\s\s\sSun\sOct\s31\s23:00:24\sMST\s1999\s\s\s\s\s-\sNotice\sit's\snot\stomorrow,\sbut\ssimply\n\s\s\s\s86400\sseconds\sin\sfuture.\n\nObservedBehavior:\nReceive\sa\sclock\svalue\sfor\sthe\ssame\sday.\s(86400\ssecons\slater)\n\nDesiredBehavior:\nExpect\sto\sreceive\sa\sclock\svalue\sfor\stomrrow.\n\n\n\nThere\swas\sa\sbug\sin\sour\shandling\sof\srelative\stimes\sfor\speriods\scrossing\sthe\sdaylight\ssavings\stime\sboundary.\s\sThe\sbug\shas\sbeen\sfixed\sin\s8.3b2:\n\n%\sclock\sformat\s[clock\sscan\stomorrow\s-base\s[clock\sscan\s1999-10-31]]\nMon\sNov\s01\s00:00:00\sPST\s1999\n\n-\seric\n\n--\s01/12/2000\sericm\n\n
J foundin final:\s8.1.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 48.\sNumber\sHandling
J title clock\sscan\stomorrow\sfails\sto\shandle\sdaylight\ssavings\stime\sch
J type Bug
K 218981ffffffffffffffffffffffffffffffffff
U nobody
Z ca1263f1ee5e66c512bf28730889199a