-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: render correct date in job listing web view #2464
Conversation
@@ -187,7 +187,7 @@ | |||
{{ _("Closes On") if status == "Open" else _("Closed On") }} | |||
</div> | |||
<div class="font-weight-bold"> | |||
{{ frappe.format_date(closes_on if status == "Open" else closed_on, "d MMM, YYYY") }} | |||
{{ frappe.utils.formatdate(closes_on if status == "Open" else closed_on, "d MMM, YYYY") }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: Rucha Mahabal <[email protected]> (cherry picked from commit 74bc96a)
@AyshaHakeem we will also have to replace the function call in Edit: Also, if interested, dig in deeper on why |
) Co-authored-by: Rucha Mahabal <[email protected]> Co-authored-by: Aysha <[email protected]>
# [15.36.0](v15.35.3...v15.36.0) (2024-12-09) ### Bug Fixes * Apply system precision value while validating leave balance (backport [#2482](#2482)) ([#2489](#2489)) ([4d2c5f6](4d2c5f6)) * prompt user to select company for shift & attendance report creation (backport [#2461](#2461)) ([#2475](#2475)) ([2bfd0b0](2bfd0b0)) * render correct date in job listing web view (backport [#2464](#2464)) ([#2478](#2478)) ([4e2b6ea](4e2b6ea)) * **Salary Assignment:** skip warning for missing opening entries in the absence of tax components (backport [#2472](#2472)) ([#2477](#2477)) ([531d16b](531d16b)) ### Features * add Absent Days column to salary register (backport [#2485](#2485)) ([#2493](#2493)) ([67077ee](67077ee))
Replaced the format_date function with frappe.utils.format_date to resolve an issue where year-end dates, such as 12-31-2024, were incorrectly rendered with the wrong year (31 Dec, 2025) in the web view. Using frappe.utils.format_date ensures accurate rendering.
Date Stored:
Date Rendered:
Before (incorrect year):
After: