Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/timezone.zig
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ pub const Posix = struct {
if (civil_month > rule_month) break :blk timestamp - 1;
// we are in the same month
// first_of_month is the weekday on the first of the month
const first_of_month = zeit.weekdayFromDays(days_from_epoch - civil.day + 1);
const first_of_month = zeit.weekdayFromDays(@intCast(days_from_epoch - civil.day + 1));
// days is the first "rule day" of the month (ie the first
// Sunday of the month)
var days: u9 = first_of_month.daysUntil(rule.day) + 1;
Expand Down Expand Up @@ -861,7 +861,7 @@ pub const Windows = struct {

const days_from_epoch = @divFloor(timestamp, s_per_day);
// first_of_month is the weekday on the first of the month
const first_of_month = zeit.weekdayFromDays(days_from_epoch - time.wDay + 1);
const first_of_month = zeit.weekdayFromDays(@intCast(days_from_epoch - time.wDay + 1));

// In the start transition month
if (time.wMonth == start.wMonth) {
Expand Down
Loading