From 459b8c9d4fcb6b6200165593707e454411c23750 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 18 Aug 2023 12:45:18 -0500 Subject: [PATCH] fix the other place (#581) --- modules/weather/get-weather.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/weather/get-weather.nu b/modules/weather/get-weather.nu index cd5c8ba..da3d3d7 100644 --- a/modules/weather/get-weather.nu +++ b/modules/weather/get-weather.nu @@ -111,7 +111,7 @@ def get_weather_by_ip [locIdx: int, units: string, token: string] { let forecast = ($forecast_data.list | each {|day| { id: ($day.weather.0.id) - dt: ($day.dt | into string | into datetime -z local | format date '%a, %b %e') #'%Y-%m-%d') + dt: ($day.dt * 1_000_000_000 | into string | into datetime -z local | format date '%a, %b %e') #'%Y-%m-%d') high: ($day.temp.max) low: ($day.temp.min) }