Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Freifunk Saar
Salt-States
Commits
1780043a
Commit
1780043a
authored
Dec 02, 2020
by
Ralf
Browse files
move Date.UTC call to helper function
parent
d5941979
Changes
1
Hide whitespace changes
Inline
Side-by-side
freifunk-mgmt/files/director/main.js
View file @
1780043a
function
make_time
(
year
,
month
,
day
,
hour
)
{
return
Date
.
UTC
(
year
,
month
-
1
/* 0 = January */
,
day
,
hour
,
0
,
0
)
/
1000
}
const
regions
=
{
"
saarbruecken
"
:
{
domain
:
"
sb
"
,
switch_time
:
-
1
,
// Date.UTC(2020, 12-1 /* 0 = January */, 2, 12, 0, 0)/1000,
switch_time
:
-
1
,
},
"
st-wendel
"
:
{
domain
:
"
wnd
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment