Skip to content

Commit 92f0735

Browse files
authored
Merge pull request #595 from topcoder-platform/dev
fix: convert date to string
2 parents 0dd4e6f + 7a7111a commit 92f0735

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/challenge-helper.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ class ChallengeHelper {
329329
}
330330

331331
static convertDateToISOString(startDate) {
332+
if (startDate instanceof Date) {
333+
return startDate.toISOString();
334+
}
332335
if (typeof startDate === "string" && !isNaN(startDate)) {
333336
startDate = parseInt(startDate);
334337
}

0 commit comments

Comments
 (0)