Skip to content

Commit

Permalink
Chore : Hard coded ETA time for extension requests to 5:30AM (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
joyguptaa authored Feb 1, 2024
1 parent fe497ae commit 9f1b271
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/task/multiple-extension-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ export default class ExtensionFormComponent extends Component {
this.createExtensionRequestError = null;
this.isSubmitButtonDisabled = true;
const formData = new FormData(e.target);
const extensionTime = new Date(formData.get('newEndsOn')).getTime() / 1000;
const newEndsOn = new Date(formData.get('newEndsOn'));
newEndsOn.setHours(5);
newEndsOn.setMinutes(30);
newEndsOn.setSeconds(0);
const extensionTime = newEndsOn.getTime() / 1000;
const json = {};
formData.forEach(function (value, key) {
json[key] = value;
Expand Down

0 comments on commit 9f1b271

Please sign in to comment.