mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: remove microsecond from posting datetime (#40017)
(cherry picked from commit 0b04d04da3)
This commit is contained in:
@@ -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')
|
||||
"""
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user