Skip to content

Commit c013f54

Browse files
DhirenderchoudharyDhirenderchoudhary
andauthored
fix: OOO migration date issues (#1112)
* fixed date issues * fix lint --------- Co-authored-by: Dhirenderchoudhary <dhirenderchoudhary0001@gmailcom>
1 parent 9108de8 commit c013f54

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

app/components/user-status-modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ export default class UserStatusModalComponent extends Component {
107107
async updateStatusBasedOnMode() {
108108
if (this.args.newStatus === USER_STATES.OOO) {
109109
await this.args.createOOORequest(
110-
getUTCMidnightTimestampFromDate(this.fromDate),
111-
getUTCMidnightTimestampFromDate(this.untilDate),
110+
this.fromDate,
111+
this.untilDate,
112112
this.reason,
113113
);
114114
}

tests/integration/components/user-status-modal-test.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,8 @@ module('Integration | Component | user-status-modal', function (hooks) {
5959
'OOO due to Bad Health',
6060
'Reason is present in the payload',
6161
);
62-
assert.strictEqual(
63-
typeof from,
64-
'number',
65-
'From is a numeric timestamp',
66-
);
67-
assert.strictEqual(
68-
typeof until,
69-
'number',
70-
'Until is a numeric timestamp',
71-
);
62+
assert.strictEqual(typeof from, 'string', 'From is a date string');
63+
assert.strictEqual(typeof until, 'string', 'Until is a date string');
7264
},
7365
});
7466
await render(hbs`

0 commit comments

Comments
 (0)