Artifacts Associated With Ticket b32fffae81
Ticket change [811ae60f94] (rid 141705) by heinzbr on 2015-05-05 09:25:52:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hello, when using 'clock scan' to get the date of a string containing "month" and "yearOfCentury" today's date is returned instead of assuming "1" for the "dayOfMonth" and returning the given date. I think this can be fixed in the DateParseActions table in clock.tcl. The following two examples show the problem: set d1 [clock scan "Apr12" -format "%b%y"] puts [clock format $d1 -format "%d %B %Y"] #--> result in today's date set d2 [clock scan "17Apr12" -format "%d%b%y"] puts [clock format $d2 -format "%d %B %Y"] #--> 17 April 2012
- foundin initialized to: "8.6.4"
- is_private initialized to: "0"
- login: "heinzbr"
- priority initialized to: "5 Medium"
- private_contact initialized to: "d209212fd9d779f06989a171f1fc974b6dd4274c"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "heinzbr"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
clock scan returns wrong date if dayOfMonth is missing
- type initialized to: "Bug"
Ticket change [dfb1bacf38] (rid 141706) by sebres on 2015-05-05 09:48:27:
- icomment:
This is undefined behaviour, because scanning of date not completed (not all required date fields fulfilled). Explanation is simple: puts [clock scan "Apr12" -format "%b%y" -base 0 -gmt 1]; # will returns 0 Simple solution does not exists, because I'm sure that 01 as default day would be incorrect. Just use formats always have a days.
- login: "sebres"
- mimetype: "text/plain"
- icomment:
Ticket change [8b076e31e9] (rid 141792) by dkf on 2015-05-16 05:53:28:
- assignee changed to: "kbk"
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "06. Time Measurement"