Skip to content

Commit

Permalink
Corrected the datatype for the timestamp columns
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachinbisht27 committed May 8, 2024
1 parent cf57fbc commit 5a5f9cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/helpers/common_helper.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from datetime import datetime, timezone
from datetime import datetime, timezone, timedelta


def get_ist_timestamp() -> datetime:
# ist_offset = timedelta(hours=5, minutes=30)
ist_offset = timedelta(hours=5, minutes=30)
utc_now = datetime.now(timezone.utc)
return utc_now
return utc_now + ist_offset


def check_activity_key(activity_key: str, keyword: str, status: str):
Expand Down

0 comments on commit 5a5f9cf

Please sign in to comment.