Skip to content

Commit c307d76

Browse files
committed
refactor(dateutils): Tidy up getTime function
1 parent 84b6397 commit c307d76

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/DateUtils.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,10 +338,8 @@ const utils = {
338338

339339
getTime() {
340340
const time = 'T00:00:00'
341-
if (this.useUtc) {
342-
return `${time}Z`
343-
}
344-
return time
341+
342+
return this.useUtc ? `${time}Z` : time
345343
},
346344

347345
/**

0 commit comments

Comments
 (0)