Skip to content

Commit

Permalink
fix datatime ref
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Feb 24, 2022
1 parent 4e0666a commit 04ff48c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/ddns-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@
from botocore.exceptions import ClientError
from collections import OrderedDict
from pprint import pformat
from datetime import datetime


# Setting Global Variables
LOGGER = logging.getLogger()
ACCOUNT = None
REGION = None
VERSION = '0.1.5'
VERSION = '0.1.6'

# Adjust the logging level [logging.INFO, logging.DEBUG, logging.WARNING, etc]
LOGGER.setLevel(logging.DEBUG)
Expand Down Expand Up @@ -1593,7 +1592,7 @@ def add_heritage_item_timestamp(data, key):
:param str key: The key for the key to contain the timestamp
:return: This adds the key and current timestamp to the heritage dict items. There is no return value.
"""
data['items'][str(key)] = int(datetime.now().timestamp())
data['items'][str(key)] = int(datetime.datetime.now().timestamp())


def format_heritage(data):
Expand Down
Binary file modified code/ddns-lambda.zip
Binary file not shown.

0 comments on commit 04ff48c

Please sign in to comment.