Skip to content

Commit

Permalink
fix: format creation date
Browse files Browse the repository at this point in the history
(cherry picked from commit 82b37f6)
  • Loading branch information
Sanket322 authored and mergify[bot] committed Jul 12, 2024
1 parent 6cc89c4 commit 385ee05
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions india_compliance/audit_trail/report/audit_trail/audit_trail.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@

import frappe
from frappe import _
from frappe.utils.data import format_datetime, get_timespan_date_range, getdate
from frappe.utils.data import (
format_date,
format_datetime,
get_timespan_date_range,
get_user_date_format,
getdate,
)

from india_compliance.audit_trail.utils import get_audit_trail_doctypes

Expand Down Expand Up @@ -271,7 +277,9 @@ def append_rows(self, records, doctype):
for row in records:
row["date_time"] = format_datetime(row["date_time"])
row["doctype"] = doctype
row["creation_date"] = getdate(row["date_time"])
row["creation_date"] = getdate(
format_date(row["date_time"], get_user_date_format())
)

if doctype == "Bill of Entry":
row["party_name"] = ""
Expand Down

0 comments on commit 385ee05

Please sign in to comment.