Commit 1c9218ba authored by jlopez's avatar jlopez
Browse files

Add timezone, See #22

parent 5ee4f04d
......@@ -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++) {
......
......@@ -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">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment