Skip to content

Instantly share code, notes, and snippets.

@pcolby
Created June 6, 2019 05:43
Show Gist options
  • Save pcolby/422e1d25a5cf030114e715ff0150cd5f to your computer and use it in GitHub Desktop.
Save pcolby/422e1d25a5cf030114e715ff0150cd5f to your computer and use it in GitHub Desktop.
--- /usr/local/lib/python2.7/dist-packages/awslogs/core.py.backup 2017-05-25 06:51:39.360136000 +1000
+++ /usr/local/lib/python2.7/dist-packages/awslogs/core.py 2018-02-07 10:11:08.695686691 +1100
@@ -18,8 +18,10 @@
def milis2iso(milis):
- res = datetime.utcfromtimestamp(milis/1000.0).isoformat()
- return (res + ".000")[:23] + 'Z'
+ #res = datetime.utcfromtimestamp(milis/1000.0).isoformat()
+ #return (res + ".000")[:23] + 'Z'
+ res = datetime.fromtimestamp(milis/1000.0).isoformat()
+ return (res)[:19]
class AWSLogs(object):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment