Skip to content

Commit

Permalink
fix: remove microsecond from posting datetime (#40017)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0b04d04)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Mar 23, 2024
1 parent ab7f806 commit c3f9338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ erpnext.patches.v14_0.clear_reconciliation_values_from_singles

[post_model_sync]
execute:frappe.delete_doc_if_exists('Workspace', 'ERPNext Integrations Settings')
erpnext.patches.v14_0.update_posting_datetime_and_dropped_indexes
erpnext.patches.v14_0.update_posting_datetime_and_dropped_indexes #22-02-2024
erpnext.patches.v14_0.rename_ongoing_status_in_sla_documents
erpnext.patches.v14_0.delete_shopify_doctypes
erpnext.patches.v14_0.delete_healthcare_doctypes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
"""
)

Expand Down

0 comments on commit c3f9338

Please sign in to comment.