fix: remove microsecond from posting datetime (#40017)

(cherry picked from commit 0b04d04da3)
This commit is contained in:
rohitwaghchaure
2024-02-22 09:22:05 +05:30
committed by Mergify
parent ab7f80625b
commit c3f9338430
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ def execute():
frappe.db.sql(
"""
UPDATE `tabStock Ledger Entry`
SET posting_datetime = timestamp(posting_date, posting_time)
SET posting_datetime = DATE_FORMAT(timestamp(posting_date, posting_time), '%Y-%m-%d %H:%i:%s')
"""
)