Skip to content

Commit

Permalink
Merge pull request #8136 from michaelchadwick/frontend-5697-show-time…
Browse files Browse the repository at this point in the history
…d-ilm-fix

fix missing session timed release information
  • Loading branch information
dartajax authored Sep 13, 2024
2 parents 3d42c09 + 5cbb455 commit b01443a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export default class TimedReleaseSchedule extends Component {
if (!this.args.startDate) {
return false;
}
return DateTime.fromJSDate(this.args.startDate) > DateTime.now();
return DateTime.fromJSDate(new Date(this.args.startDate)) > DateTime.now();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module('Integration | Component | timed release schedule', function (hooks) {
assert.dom(this.element).hasNoText();
});

test('it renders nothing with only start date in the past and showNoSchdule set to false', async function (assert) {
test('it renders nothing with only start date in the past and showNoSchedule set to false', async function (assert) {
const yesterday = DateTime.fromObject({ hour: 8 }).minus({ days: 1 });
this.set('yesterday', yesterday.toJSDate());
await render(
Expand Down

0 comments on commit b01443a

Please sign in to comment.