Skip to content
Tcl Source Code History Of Ticket b32fffae81
Login

History Of Ticket b32fffae81

Artifacts Associated With Ticket b32fffae81

  1. Ticket change [811ae60f94] (rid 141705) by heinzbr on 2015-05-05 09:25:52:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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
      
    5. foundin initialized to: "8.6.4"
    6. is_private initialized to: "0"
    7. login: "heinzbr"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "d209212fd9d779f06989a171f1fc974b6dd4274c"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "heinzbr"
    14. subsystem initialized to: "16. Commands A-H"
    15. title initialized to:
      clock scan returns wrong date if dayOfMonth is missing
      
    16. type initialized to: "Bug"
  2. Ticket change [dfb1bacf38] (rid 141706) by sebres on 2015-05-05 09:48:27:

    1. 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.
      
    2. login: "sebres"
    3. mimetype: "text/plain"
  3. Ticket change [8b076e31e9] (rid 141792) by dkf on 2015-05-16 05:53:28:

    1. assignee changed to: "kbk"
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "06. Time Measurement"