Skip to content

Commit a389691

Browse files
Revathyvenugopal162pyansys-ci-bot
authored andcommitted
fix: rename the date to ast_build_date in js (#594)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent c75ee10 commit a389691

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: rename the ``date`` to ``ast_build_date`` in js

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/components/theme-version.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
>Ansys Sphinx Theme</a
55
>
66
{{ ansys_sphinx_theme_version }}.{% endtrans %} <br />Last updated on
7-
<span id="date"></span>
7+
<span id="ast_build_date"></span>
88
</p>
99
<script>
1010
var options = { day: "numeric", month: "long", year: "numeric" };
11-
var lastModifiedDate = new Date(document.lastModified);
12-
var date = lastModifiedDate.toLocaleDateString("en-US", options);
13-
document.getElementById("date").innerHTML = date;
11+
var ast_lastModifiedDate = new Date(document.lastModified);
12+
var ast_build_date = lastModifiedDate.toLocaleDateString("en-US", options);
13+
document.getElementById("ast_build_date").innerHTML = ast_build_date;
1414
</script>

0 commit comments

Comments
 (0)