Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
cb5d51a5
Commit
cb5d51a5
authored
Nov 08, 2017
by
Daniele Venzano
Browse files
Update moment JS library and show locale-aware timestamps in the execution details page
parent
c6c86a44
Changes
2
Hide whitespace changes
Inline
Side-by-side
zoe_api/web/static/moment.min.js
View file @
cb5d51a5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
zoe_api/web/templates/execution_inspect.html
View file @
cb5d51a5
...
...
@@ -5,10 +5,13 @@
<script
src=
"/static/moment.min.js"
type=
"application/javascript"
></script>
<script
src=
"/static/moment-timezone.min.js"
type=
"application/javascript"
></script>
<script>
var
locale
=
window
.
navigator
.
userLanguage
||
window
.
navigator
.
language
;
moment
.
locale
(
locale
);
function
format_timestamp
(
ts
)
{
var
m
=
moment
.
utc
(
ts
);
m
.
local
();
document
.
write
(
m
.
calendar
(
));
document
.
write
(
m
.
format
(
"
L, LTS
"
));
}
</script>
{% endblock %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment