Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jlopez
wicopa
Commits
1c9218ba
Commit
1c9218ba
authored
Mar 09, 2020
by
jlopez
Browse files
Add timezone, See
#22
parent
5ee4f04d
Changes
2
Hide whitespace changes
Inline
Side-by-side
inc/js/wicopa.js
View file @
1c9218ba
...
...
@@ -263,6 +263,18 @@ function generate_container() {
}
var
timezone
=
document
.
getElementById
(
"
timezonePreview
"
).
value
;
if
(
isSingularity
)
{
PREVIEW
+=
"
\t
"
+
timezone
+
"
\n
"
;
nrow
+=
1
;
}
else
{
PREVIEW
+=
"
RUN
"
+
timezone
+
"
\n
"
;
nrow
+=
1
;
}
PREVIEW
+=
"
\n
"
;
if
(
isSingularity
)
{
PREVIEW
+=
"
\t
"
+
manager
+
"
update
\n
"
;
}
...
...
@@ -270,6 +282,7 @@ function generate_container() {
PREVIEW
+=
"
RUN
"
+
manager
+
"
update
\n
"
;
}
nrow
+=
1
;
PREVIEW
+=
"
\n
"
;
for
(
var
i
=
0
;
i
<
SELECTED_PACKAGES
[
"
Distribution
"
].
length
;
i
++
)
{
...
...
index.php
View file @
1c9218ba
...
...
@@ -202,6 +202,18 @@ require_once "./inc/php/buildHeader.php";
</div>
</div>
<br/>
<div
class=
"col-12"
>
<div
class=
"card border border-dark"
>
<div
class=
"card-header bg-dark text-light"
>
Timezone :
</div>
<div
class=
"card-body"
>
<input
type=
"text"
class=
"form-control"
id=
"timezonePreview"
value=
'TZ=Europe/Paris; ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone'
>
</div>
</div>
</div>
<br/>
<div
class=
"col-12"
>
...
...
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