fix weather duration after latest nushell changes (#580)

This commit is contained in:
Darren Schroeder 2023-08-18 12:40:18 -05:00 committed by GitHub
parent 8e086d8771
commit ce2b66b2d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,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)
}