hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 51d4feb9fa969343789246b5566f1b85ddbb6013
parent bda2079cf1b9baced61379256767b699eef90fb1
Author: Byron Torres <b@torresjrjr.com>
Date:   Mon, 15 Apr 2024 01:35:16 +0100

time::date: realize: fix v.year

Diffstat:
Mtime/date/virtual.ha | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/time/date/virtual.ha b/time/date/virtual.ha @@ -369,30 +369,27 @@ fn realize_datetimezoff( }; if ( - v.year is int && v.month is int && v.day is int ) { v.daydate = calc_daydate__ymd( - v.year as int, + year, v.month as int, v.day as int, )?; } else if ( - v.year is int && v.yearday is int ) { v.daydate = calc_daydate__yd( - v.year as int, + year, v.yearday as int, )?; } else if ( - v.year is int && v.week is int && v.weekday is int ) { v.daydate = calc_daydate__ywd( - v.year as int, + year, v.week as int, v.weekday as int, )?;