Skip to content

Commit

Permalink
fix: chaning string to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Nov 11, 2023
1 parent 8d16f72 commit 55d391f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lambda/post-profile/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def extract_and_format_date(event):
return None

def format_time(timestamp_ms):
timestamp_s = timestamp_ms / 1000.0

timestamp_s = int(timestamp_ms) / 1000.0
dt = datetime.fromtimestamp(timestamp_s, tz=timezone.utc)
return dt.strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + 'Z'

0 comments on commit 55d391f

Please sign in to comment.