Skip to content

Commit a94269c

Browse files
committed
Novosibirsk time-zone.
1 parent 476ac26 commit a94269c

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

wled00/data/settings_time.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ <h2>Time setup</h2>
128128
<option value="16">ACST</option>
129129
<option value="17">ACST/ACDT</option>
130130
<option value="18">HST (Hawaii)</option>
131+
<option value="19">NOVT (Novosibirsk)</option>
131132
</select><br>
132133
UTC offset: <input name="UO" type="number" min="-65500" max="65500" required> seconds (max. 18 hours)<br>
133134
Current local time is <span class="times">unknown</span>.<br>

wled00/html_settings.h

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

wled00/ntp.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Timezone* tz;
2929
#define TZ_AUSTRALIA_NORTHERN 16
3030
#define TZ_AUSTRALIA_SOUTHERN 17
3131
#define TZ_HAWAII 18
32+
#define TZ_NOVOSIBIRSK 19
3233
#define TZ_INIT 255
3334

3435
byte tzCurrent = TZ_INIT; //uninitialized
@@ -129,6 +130,11 @@ void updateTimezone() {
129130
tcrStandard = tcrDaylight;
130131
break;
131132
}
133+
case TZ_NOVOSIBIRSK : {
134+
tcrDaylight = {Last, Sun, Mar, 1, 420}; //CST = UTC + 7 hours
135+
tcrStandard = tcrDaylight;
136+
break;
137+
}
132138
}
133139

134140
tzCurrent = currentTimezone;

0 commit comments

Comments
 (0)