Skip to content

Commit

Permalink
Revert "chore: debug without fix in ci"
Browse files Browse the repository at this point in the history
This reverts commit 4b497b4.
  • Loading branch information
Magomed Chemurziev committed Sep 9, 2024
1 parent 4b497b4 commit 5ec5623
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/prelude/date/create/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ extend(Date, 'create', (pattern?: DateCreateValue) => {
const normalizedDate = normalizeDate(date);

time = Object.isTruly(time) ? time : '00:00:00';
zone = Object.isTruly(zone) ? zone : getZone(normalizedDate);

return `${normalizedDate}T${time}${normalizeZone(zone)}`;
const dateTime = `${normalizedDate}T${time}`;
zone = Object.isTruly(zone) ? zone : getZone(dateTime);

return `${dateTime}${normalizeZone(zone)}`;
};

return new Date(Date.parse(pattern.replace(isDateStr, replacer)));
Expand Down

0 comments on commit 5ec5623

Please sign in to comment.