Skip to content

Commit

Permalink
Make timezone explicit in logging time stamps
Browse files Browse the repository at this point in the history
  • Loading branch information
ctsa committed Mar 2, 2018
1 parent bf3cd87 commit d04af95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyflow/src/pyflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def timeStampToTimeStr(ts) :
"""
converts time.time() output to timenow() string
"""
return datetime.datetime.utcfromtimestamp(ts).isoformat()
return datetime.datetime.utcfromtimestamp(ts).isoformat()+"Z"

def timeStrNow():
return timeStampToTimeStr(time.time())
Expand Down
2 changes: 1 addition & 1 deletion pyflow/src/pyflowTaskWrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def timeStampToTimeStr(ts) :
"""
converts timeStamp (time.time()) output to timeStr
"""
return datetime.datetime.utcfromtimestamp(ts).isoformat()
return datetime.datetime.utcfromtimestamp(ts).isoformat() + "Z"

def timeStrNow():
return timeStampToTimeStr(time.time())
Expand Down

0 comments on commit d04af95

Please sign in to comment.