chore: remove microsecond from posting_datetime

This commit is contained in:
Rohit Waghchaure
2024-02-21 17:32:02 +05:30
parent f37f7ca5c3
commit a73ba2c0d2
5 changed files with 8 additions and 21 deletions

View File

@@ -671,4 +671,4 @@ def get_combine_datetime(posting_date, posting_time):
if isinstance(posting_time, datetime.timedelta):
posting_time = (datetime.datetime.min + posting_time).time()
return datetime.datetime.combine(posting_date, posting_time)
return datetime.datetime.combine(posting_date, posting_time).replace(microsecond=0)