Skip to content

Commit 827cf87

Browse files
committed
Merge pull request wled#4188 from LuisFadini/0_15_brt_timezone
Added BRT timezone
1 parent 12ef7cb commit 827cf87

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

wled00/data/settings_time.htm

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ <h2>Time setup</h2>
182182
<option value="20">AKST/AKDT (Anchorage)</option>
183183
<option value="21">MX-CST</option>
184184
<option value="22">PKT (Pakistan)</option>
185+
<option value="23">BRT (Brasília)</option>
185186
</select><br>
186187
UTC offset: <input name="UO" type="number" min="-65500" max="65500" required> seconds (max. 18 hours)<br>
187188
Current local time is <span class="times">unknown</span>.<br>

wled00/ntp.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Timezone* tz = nullptr;
4848
#define TZ_ANCHORAGE 20
4949
#define TZ_MX_CENTRAL 21
5050
#define TZ_PAKISTAN 22
51+
#define TZ_BRASILIA 23
5152
#define TZ_INIT 255
5253

5354
byte tzCurrent = TZ_INIT; //uninitialized
@@ -168,6 +169,11 @@ void updateTimezone() {
168169
tcrStandard = tcrDaylight;
169170
break;
170171
}
172+
case TZ_BRASILIA : {
173+
tcrDaylight = {Last, Sun, Mar, 1, -180}; //Brasília Standard Time = UTC - 3 hours
174+
tcrStandard = tcrDaylight;
175+
break;
176+
}
171177
}
172178

173179
tzCurrent = currentTimezone;

0 commit comments

Comments
 (0)