#6903 GC date parsing error

v1.1.0
closed
General
2015-08-20
2013-11-20
No
  File "/var/local/allura/ForgeImporters/forgeimporters/google/tracker.py", line 132, in import_tool
    self.process_fields(ticket, issue)
  File "/var/local/allura/ForgeImporters/forgeimporters/google/tracker.py", line 171, in process_fields
    ticket.created_date = datetime.strptime(issue.get_issue_created_date(), '%c')
  File "/usr/lib64/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data 'Tue Jul  9 19:03:12 2013' does not match format '%c'

Maybe we shouldn't use %c which is locale-dependent?

Discussion

  • Cory Johns

    Cory Johns - 2013-11-20
    • status: open --> in-progress
    • assigned_to: Cory Johns
     
  • Cory Johns

    Cory Johns - 2013-11-20
    • status: in-progress --> code-review
     
  • Cory Johns

    Cory Johns - 2013-11-20

    allura:cj/6903

     
  • Tim Van Steenburgh

    • QA: Tim Van Steenburgh
     
  • Tim Van Steenburgh

    • status: code-review --> closed
     

Log in to post a comment.