Skip to content

Commit f0256d7

Browse files
committed
Fix the import form date shift input on the sets manager page.
This was a cut and paste error in #2655. I cut the similar code from `htdocs/js/DatePicker/datepicker.js` and needed to change the input variable name. Currently if you select a date on the import form no date is actually entered into the input, and console errors are output. Obviously that is fixed with this pull request.
1 parent 688fd34 commit f0256d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

htdocs/js/ProblemSetList/problemsetlist.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@
188188
return (
189189
new Date(dateTime.toLocaleString('en-US')).getTime() -
190190
new Date(
191-
dateTime.toLocaleString('en-US', { timeZone: open_rule.dataset.timezone ?? 'America/New_York' })
191+
dateTime.toLocaleString('en-US', {
192+
timeZone: importDateShift.dataset.timezone ?? 'America/New_York'
193+
})
192194
).getTime()
193195
);
194196
};

0 commit comments

Comments
 (0)