Skip to content

Commit

Permalink
Merge pull request #3621 from hashicorp/b-ui-timezones
Browse files Browse the repository at this point in the history
UI: Drop timezones from timestamps
  • Loading branch information
DingoEatingFuzz committed Dec 6, 2017
2 parents 289b52a + a034708 commit 5acb3e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/app/templates/allocations/allocation/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<em>No message</em>
{{/if}}
</td>
<td>{{moment-format row.model.events.lastObject.time "MM/DD/YY HH:mm:ss [UTC]"}}</td>
<td>{{moment-format row.model.events.lastObject.time "MM/DD/YY HH:mm:ss"}}</td>
<td>
<ul>
{{#each row.model.resources.networks.firstObject.reservedPorts as |port|}}
Expand Down
2 changes: 1 addition & 1 deletion ui/app/templates/components/job-version.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</span>
<span class="pair is-faded version-submit-date">
<span class="term">Submitted</span>
<span class="submit-date">{{moment-format version.submitTime "MM/DD/YY HH:mm:ss [UTC]"}}</span>
<span class="submit-date">{{moment-format version.submitTime "MM/DD/YY HH:mm:ss"}}</span>
</span>
{{#if version.diff}}
<button class="button is-light is-compact pull-right" {{action "toggleDiff"}}>{{changeCount}} {{pluralize "Change" changeCount}}</button>
Expand Down
2 changes: 1 addition & 1 deletion ui/tests/acceptance/allocation-detail-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ test('each task row should list high-level information for the task', function(a
.find('td:eq(3)')
.text()
.trim(),
moment(event.time / 1000000).format('MM/DD/YY HH:mm:ss [UTC]'),
moment(event.time / 1000000).format('MM/DD/YY HH:mm:ss'),
'Event Time'
);

Expand Down
2 changes: 1 addition & 1 deletion ui/tests/acceptance/job-versions-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test('each version mentions the version number, the stability, and the submitted
);
assert.equal(
versionRow.find('.version-submit-date .submit-date').text(),
moment(version.submitTime / 1000000).format('MM/DD/YY HH:mm:ss [UTC]'),
moment(version.submitTime / 1000000).format('MM/DD/YY HH:mm:ss'),
'Submit time'
);
});

0 comments on commit 5acb3e8

Please sign in to comment.