Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/configure-pages@v2
- uses: mlugg/setup-zig@v2
with:
version: 0.15.1
version: 0.15.2
- run: zig build docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test

on:
pull_request:
branches: ["main"]
branches: ["main", "0.16"]
workflow_dispatch:

jobs:
Expand All @@ -15,13 +15,13 @@ jobs:
- uses: actions/checkout@v3
- uses: mlugg/setup-zig@v2
with:
version: 0.15.1
- run: zig build test
version: master
- run: zig build test --summary new
check-fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: mlugg/setup-zig@v1
- uses: mlugg/setup-zig@v2
with:
version: 0.13.0
version: master
- run: zig fmt --check .
4 changes: 2 additions & 2 deletions src/timezone.zig
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,13 @@ pub const Windows = struct {
};

var localtime: windows.SYSTEMTIME = undefined;
if (windows.SystemTimeToTzSpecificLocalTimeEx(&self.zoneinfo, &systemtime, &localtime) == 0) {
if (windows.SystemTimeToTzSpecificLocalTimeEx(&self.zoneinfo, &systemtime, &localtime) == .FALSE) {
const err = std.os.windows.GetLastError();
std.log.err("{}", .{err});
@panic("TODO");
}
var tzi: windows.TIME_ZONE_INFORMATION = undefined;
if (windows.GetTimeZoneInformationForYear(localtime.wYear, &self.zoneinfo, &tzi) == 0) {
if (windows.GetTimeZoneInformationForYear(localtime.wYear, &self.zoneinfo, &tzi) == .FALSE) {
const err = std.os.windows.GetLastError();
std.log.err("{}", .{err});
@panic("TODO");
Expand Down
Loading