Toggle navigation
Toggle navigation
This project
Loading...
Sign in
teamPARK
/
holiday-counter-recommend-activity
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박지환
2022-06-07 11:15:14 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5deb5c1560c209c291dbffeb6f078cb2e378477c
5deb5c15
1 parent
daef6ea7
Test time set
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
nodejs/server.js
nodejs/server.js
View file @
5deb5c1
...
...
@@ -33,10 +33,11 @@ app.use(static(__dirname));
// To get today date by using Date
function
getTodayDate
()
{
var
tempDate
=
new
Date
();
console
.
log
(
"[tempDate] "
+
tempDate
);
const
utc
=
tempDate
.
getTime
()
+
tempDate
.
getTimezoneOffset
()
*
60
*
1000
;
const
KR_TIME_DIFF
=
9
*
60
*
60
*
1000
;
const
today
=
new
Date
(
utc
+
KR_TIME_DIFF
);
console
.
log
(
today
);
console
.
log
(
"[today] "
+
today
);
var
year
=
today
.
getFullYear
();
var
month
=
(
"0"
+
(
today
.
getMonth
()
+
1
)).
slice
(
-
2
);
var
day
=
(
"0"
+
today
.
getDate
()).
slice
(
-
2
);
...
...
Please
register
or
login
to post a comment