Artifacts Associated With Ticket 219337ffffffffff
Ticket change [67b27b9c4a] (rid 102936) by nobody on 2000-10-26 05:10:57:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 5297 Bug Version: 8.3 SubmitDate: '2000-04-28' LastModified: '2000-06-26' Severity: SER Status: UnAssn Submitter: techsupp ChangedBy: ericm RelatedBugIDs: 4862 OS: All OSVersion: NT 4.0, RedHat Linux 6.2, AIX 4.1 Machine: various IBM PCs, IBM RS/6000 FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Borivoj Tydlitat Extensions: none in this case CustomShell: no Comments: The above yacc grammar has two branches with hard-coded '-' sign before TZ offset. Just added two more with '+' sign. ReproducibleScript: % clock scan {3/1 12:00 est} 951930000 % clock scan {3/1 18:00 cet} 951930000 % clock scan {3/1 12:00 -0500} 951930000 % clock scan {3/1 18:00 +0100} unable to convert date-time string "3/1 18:00 +0100" ObservedBehavior: Error converting times with timezone expressed as positive hhmm offset: +hmm (i.e. eastern hemisphere timezones). Timezones with negative offset, symbolic names or military codes seem to work OK. DesiredBehavior: Apparently the date/time formats covered by the clock scan command attempt to conform to RFC 822. Therefore timezone fields like +1100 should be processed the same way e.g. -0500 is, and not be rejected as incorrect format. Patch: *** tclGetDate.y.old Fri Apr 28 13:28:21 2000 --- tclGetDate.y Fri Apr 28 13:30:28 2000 *************** *** 205,210 **** --- 205,217 ---- yyDSTmode = DSToff; yyTimezone = ($5 % 100 + ($5 / 100) * 60); } + | tUNUMBER ':' tUNUMBER '+' tUNUMBER { + yyHour = $1; + yyMinutes = $3; + yyMeridian = MER24; + yyDSTmode = DSToff; + yyTimezone = -($5 % 100 + ($5 / 100) * 60); + } | tUNUMBER ':' tUNUMBER ':' tUNUMBER o_merid { yyHour = $1; yyMinutes = $3; *************** *** 219,225 **** yyDSTmode = DSToff; yyTimezone = ($7 % 100 + ($7 / 100) * 60); } ! ; zone : tZONE tDST { yyTimezone = $1; --- 226,240 ---- yyDSTmode = DSToff; yyTimezone = ($7 % 100 + ($7 / 100) * 60); } ! | tUNUMBER ':' tUNUMBER ':' tUNUMBER '+' tUNUMBER { ! yyHour = $1; ! yyMinutes = $3; ! yySeconds = $5; ! yyMeridian = MER24; ! yyDSTmode = DSToff; ! yyTimezone = -($7 % 100 + ($7 / 100) * 60); ! } ! ; zone : tZONE tDST { yyTimezone = $1; PatchFiles: generic/tclGetDate.y There is a backwards compatibility issue with this change. Prior to using it: % clock scan "12:00 +1000 seconds" 962047000 After applying it: % clock scan "12:00 +1000 seconds" 961984801 The grammar is such that the "+1000" is greedily consumed as a timezone for "12:00" rather than a multiplier for "seconds". This may be fixable with a better grammar; really, as I've said before, the clock grammar needs a complete overhaul (13 shift/reduce conflicts is obscene). - eric -- 06/26/2000 ericm - foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "48. Number Handling"
- title initialized to: "clock scan - timezones like +200 generate error"
- type initialized to: "Bug"
Ticket change [1847506684] (rid 122632) by dgp on 2001-02-08 12:26:29:
- assignee changed to: "kennykb"
- subsystem changed to: "06. Time Measurement"
Ticket change [98e0793cd8] (rid 110686) by kennykb on 2004-08-19 21:05:24:
- closedate changed to: "2004-08-19T14:05:24"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 Closed along with 219339.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Deleted"
- username: "kennykb"