[LNT] r231038 - Explicitly stringify datetimes
    Chris Matthews 
    cmatthews5 at apple.com
       
    Mon Mar  2 16:10:08 PST 2015
    
    
  
Author: cmatthews
Date: Mon Mar  2 18:10:08 2015
New Revision: 231038
URL: http://llvm.org/viewvc/llvm-project?rev=231038&view=rev
Log:
Explicitly stringify datetimes
It seems in some versions of python the jsonifyier does not handle datetime objects.  Explicitly convert these times to a string format.
Modified:
    lnt/trunk/lnt/server/ui/views.py
Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=231038&r1=231037&r2=231038&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Mon Mar  2 18:10:08 2015
@@ -183,7 +183,7 @@ def v4_machine(id):
             rev = order[0].llvm_project_revision
             for run in order[1]:
                 json_obj['runs'].append((run.id, rev,
-                                         run.start_time, run.end_time))
+                                         run.start_time.isoformat(), run.end_time.isoformat()))
         return flask.jsonify(**json_obj)
 
     return render_template("v4_machine.html",
    
    
More information about the llvm-commits
mailing list