Novosibirsk time-zone.

This commit is contained in:
Blaz Kristan 2021-09-26 17:21:32 +02:00
parent 476ac263fb
commit a94269ceb9
3 changed files with 16 additions and 8 deletions

View File

@ -128,6 +128,7 @@
<option value="16">ACST</option> <option value="16">ACST</option>
<option value="17">ACST/ACDT</option> <option value="17">ACST/ACDT</option>
<option value="18">HST (Hawaii)</option> <option value="18">HST (Hawaii)</option>
<option value="19">NOVT (Novosibirsk)</option>
</select><br> </select><br>
UTC offset: <input name="UO" type="number" min="-65500" max="65500" required> seconds (max. 18 hours)<br> UTC offset: <input name="UO" type="number" min="-65500" max="65500" required> seconds (max. 18 hours)<br>
Current local time is <span class="times">unknown</span>.<br> Current local time is <span class="times">unknown</span>.<br>

View File

@ -349,14 +349,15 @@ CST(AWST)</option><option value="10">JST(KST)</option><option value="11">
AEST/AEDT</option><option value="12">NZST/NZDT</option><option value="13"> AEST/AEDT</option><option value="12">NZST/NZDT</option><option value="13">
North Korea</option><option value="14">IST (India)</option><option value="15"> North Korea</option><option value="14">IST (India)</option><option value="15">
CA-Saskatchewan</option><option value="16">ACST</option><option value="17"> CA-Saskatchewan</option><option value="16">ACST</option><option value="17">
ACST/ACDT</option><option value="18">HST (Hawaii)</option></select><br> ACST/ACDT</option><option value="18">HST (Hawaii)</option><option value="19">
UTC offset: <input name="UO" type="number" min="-65500" max="65500" required> NOVT (Novosibirsk)</option></select><br>UTC offset: <input name="UO"
seconds (max. 18 hours)<br>Current local time is <span class="times">unknown type="number" min="-65500" max="65500" required> seconds (max. 18 hours)<br>
</span>.<br>Latitude (N): <input name="LT" type="number" min="-66.6" max="66.6" Current local time is <span class="times">unknown</span>.<br>Latitude (N):
step="0.01"> Longitude (E): <input name="LN" type="number" min="-180" max="180" <input name="LT" type="number" min="-66.6" max="66.6" step="0.01">
step="0.01"><div id="sun" class="times"></div><h3>Clock</h3>Clock Overlay: Longitude (E): <input name="LN" type="number" min="-180" max="180" step="0.01">
<select name="OL" onchange="Cs()"><option value="0" id="cn" selected="selected"> <div id="sun" class="times"></div><h3>Clock</h3>Clock Overlay: <select
None</option><option value="1" id="ca">Analog Clock</option><option value="2"> name="OL" onchange="Cs()"><option value="0" id="cn" selected="selected">None
</option><option value="1" id="ca">Analog Clock</option><option value="2">
Single Digit Clock</option><option value="3" id="cc">Cronixie Clock</option> Single Digit Clock</option><option value="3" id="cc">Cronixie Clock</option>
</select><br><div id="coc">First LED: <input name="O1" type="number" min="0" </select><br><div id="coc">First LED: <input name="O1" type="number" min="0"
max="255" required> Last LED: <input name="O2" type="number" min="0" max="255" max="255" required> Last LED: <input name="O2" type="number" min="0" max="255"

View File

@ -29,6 +29,7 @@ Timezone* tz;
#define TZ_AUSTRALIA_NORTHERN 16 #define TZ_AUSTRALIA_NORTHERN 16
#define TZ_AUSTRALIA_SOUTHERN 17 #define TZ_AUSTRALIA_SOUTHERN 17
#define TZ_HAWAII 18 #define TZ_HAWAII 18
#define TZ_NOVOSIBIRSK 19
#define TZ_INIT 255 #define TZ_INIT 255
byte tzCurrent = TZ_INIT; //uninitialized byte tzCurrent = TZ_INIT; //uninitialized
@ -129,6 +130,11 @@ void updateTimezone() {
tcrStandard = tcrDaylight; tcrStandard = tcrDaylight;
break; break;
} }
case TZ_NOVOSIBIRSK : {
tcrDaylight = {Last, Sun, Mar, 1, 420}; //CST = UTC + 7 hours
tcrStandard = tcrDaylight;
break;
}
} }
tzCurrent = currentTimezone; tzCurrent = currentTimezone;