Skip to content

Commit

Permalink
ui: use 24-hour clock to format times
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni committed Nov 21, 2022
1 parent 17720fd commit ec9800e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions reana-ui/src/pages/workflowList/components/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-*- coding: utf-8 -*-
This file is part of REANA.
Copyright (C) 2020 CERN.
Copyright (C) 2020, 2022 CERN.
REANA is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -130,7 +130,7 @@ export function WelcomeNoTokenMsg() {
</p>
<Button content="Token requested" disabled />
<small className={styles.requested}>
<em>{moment.utc(tokenRequestedAt).format("YYYY-MM-DDThh:mm:ss")}</em>
<em>{moment.utc(tokenRequestedAt).format("YYYY-MM-DDTHH:mm:ss")}</em>
</small>
</div>
) : (
Expand Down
2 changes: 1 addition & 1 deletion reana-ui/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function parseWorkflowRetentionRules(workflow) {
? getTimeBeforeExecution(applyOn, currentTime)
: null;
return {
applyOn: applyOn ? applyOn.format("YYYY-MM-DDThh:mm:ss") : null,
applyOn: applyOn ? applyOn.format("YYYY-MM-DDTHH:mm:ss") : null,
timeBeforeExecution,
retentionDays: retention_days,
workspaceFiles: workspace_files,
Expand Down

0 comments on commit ec9800e

Please sign in to comment.