Skip to content

Commit 29c6fff

Browse files
authored
Merge pull request #481 from ezeeetm/fixes480
fixes #480
2 parents ee18f9f + e8e1958 commit 29c6fff

File tree

1 file changed

+1
-2
lines changed
  • aws-python-rest-api-with-dynamodb/todos

1 file changed

+1
-2
lines changed

aws-python-rest-api-with-dynamodb/todos/create.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import time
55
import uuid
6-
from datetime import datetime
76

87
import boto3
98
dynamodb = boto3.resource('dynamodb')
@@ -15,7 +14,7 @@ def create(event, context):
1514
logging.error("Validation Failed")
1615
raise Exception("Couldn't create the todo item.")
1716

18-
timestamp = str(datetime.utcnow().timestamp())
17+
timestamp = str(time.time())
1918

2019
table = dynamodb.Table(os.environ['DYNAMODB_TABLE'])
2120

0 commit comments

Comments
 (0)