Skip to content

Commit

Permalink
fix: rename the date to ast_build_date in js (#594)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
2 people authored and jorgepiloto committed Dec 5, 2024
1 parent c75ee10 commit a389691
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/594.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: rename the ``date`` to ``ast_build_date`` in js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
>Ansys Sphinx Theme</a
>
{{ ansys_sphinx_theme_version }}.{% endtrans %} <br />Last updated on
<span id="date"></span>
<span id="ast_build_date"></span>
</p>
<script>
var options = { day: "numeric", month: "long", year: "numeric" };
var lastModifiedDate = new Date(document.lastModified);
var date = lastModifiedDate.toLocaleDateString("en-US", options);
document.getElementById("date").innerHTML = date;
var ast_lastModifiedDate = new Date(document.lastModified);
var ast_build_date = lastModifiedDate.toLocaleDateString("en-US", options);
document.getElementById("ast_build_date").innerHTML = ast_build_date;
</script>

0 comments on commit a389691

Please sign in to comment.