hare

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

commit c5cd986395726cc4bf1ac8020ef3263304813947
parent 5207485c70de4f89ecdcb6efbb2d278d09c4f44b
Author: Byron Torres <b@torresjrjr.com>
Date:   Sun,  9 Jan 2022 16:49:51 +0000

fix chrono::in()

Signed-off-by: Byron Torres <b@torresjrjr.com>

Diffstat:
Mtime/chrono/timezone.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/time/chrono/timezone.ha b/time/chrono/timezone.ha @@ -60,7 +60,7 @@ type tzname = struct { // Transforms and creates a new [[moment]] in a different [[locality]] export fn in(loc: locality, m: moment) moment = { - return new(m.date, m.time, m.loc); // resets .zone + return new(m.date, m.time, loc); // resets .zone }; // Returns a fictitious moment which assumes it's own locality is the normal