We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee18f9f + e8e1958 commit 29c6fffCopy full SHA for 29c6fff
aws-python-rest-api-with-dynamodb/todos/create.py
@@ -3,7 +3,6 @@
3
import os
4
import time
5
import uuid
6
-from datetime import datetime
7
8
import boto3
9
dynamodb = boto3.resource('dynamodb')
@@ -15,7 +14,7 @@ def create(event, context):
15
14
logging.error("Validation Failed")
16
raise Exception("Couldn't create the todo item.")
17
18
- timestamp = str(datetime.utcnow().timestamp())
+ timestamp = str(time.time())
19
20
table = dynamodb.Table(os.environ['DYNAMODB_TABLE'])
21
0 commit comments