Add timezone +00:00 to timestamp

pull/570/head
Richard van den Berg 2015-07-16 17:56:52 +02:00
parent 27d09b4e22
commit b126db534a
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ def generateIndicator(attribute):
# converts timestamp to the format used by STIX
def getDateFromTimestamp(timestamp):
return datetime.datetime.fromtimestamp(timestamp).isoformat()
return datetime.datetime.fromtimestamp(timestamp).isoformat() + "+00:00"
# converts a date (YYYY-mm-dd) to the format used by stix
def convertToStixDate(date):