Skip to content

Commit 4570018

Browse files
jstirnamanCopilot
andcommitted
Update assets/js/datetime.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9cabc40 commit 4570018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/datetime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var currentTimestamp = date.toISOString().replace(/^(.*)(\.\d+)(Z)/, '$1$3'); //
33
var currentTime = date.toISOString().replace(/(^.*T)(.*)(Z)/, '$2') + '084216'; // 12:34:56.000084216
44

55
function currentDate(offset = 0, trimTime = false) {
6-
outputDate = new Date(date);
6+
let outputDate = new Date(date);
77
outputDate.setDate(outputDate.getDate() + offset);
88

99
if (trimTime) {

0 commit comments

Comments
 (0)