Skip to content

Commit

Permalink
fix: render correct date in job listing web view (#2464)
Browse files Browse the repository at this point in the history
Co-authored-by: Rucha Mahabal <[email protected]>
  • Loading branch information
AyshaHakeem and ruchamahabal authored Dec 4, 2024
1 parent 72c4b75 commit 74bc96a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hrms/templates/generators/job_opening.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.format_date(closes_on if status == "Open" else closed_on, "d MMM, YYYY") }}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion hrms/www/jobs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ <h3 class="mt-0 mb-10 jobs-page">{{ _("Job Openings") }}</h3>
<p class="col-6 text-center mb-0">
{%- if jo.closes_on -%}
{{ _("Closes on:") + " " }}
<b>{{ frappe.format_date(jo.closes_on, "d MMM, YYYY") }}</b>
<b>{{ frappe.utils.format_date(jo.closes_on, "d MMM, YYYY") }}</b>
{% endif %}
</p>
</div>
Expand Down

0 comments on commit 74bc96a

Please sign in to comment.