From 55d391f658ce40ffb1b73734862dfc2f47fc34fe Mon Sep 17 00:00:00 2001 From: Jason Park Date: Sat, 11 Nov 2023 23:00:19 +0900 Subject: [PATCH] fix: chaning string to integer --- src/lambda/post-profile/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lambda/post-profile/utils.py b/src/lambda/post-profile/utils.py index 208dd16c5..8b5cefac1 100644 --- a/src/lambda/post-profile/utils.py +++ b/src/lambda/post-profile/utils.py @@ -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' \ No newline at end of file