Use ISO format instead an explicit strftime().
authorAnt Zucaro <azucaro@gmail.com>
Sun, 18 Aug 2013 18:56:25 +0000 (14:56 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 18 Aug 2013 18:56:25 +0000 (14:56 -0400)
xonstat/views/player.py

index 7746729..575373b 100644 (file)
@@ -884,7 +884,7 @@ def player_hashkey_info_text(request):
 
     # one-offs for things needing conversion for text/plain
     player_joined = timegm(player.create_dt.timetuple())
-    player_joined_dt = player.create_dt.strftime('%Y-%m-%d %H:%M:%SZ')
+    player_joined_dt = player.create_dt
     alivetime = int(datetime_seconds(overall_stats['overall'].total_playing_time))
 
     # this is a plain text response, if we don't do this here then