1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 22:57:46 +00:00

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| let forecast = ($forecast_data.list | each {|day|
{ {
id: ($day.weather.0.id) 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) high: ($day.temp.max)
low: ($day.temp.min) low: ($day.temp.min)
} }