mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-09-11 13:45:56 +03:00
fix weather duration after latest nushell changes (#580)
This commit is contained in:
parent
8e086d8771
commit
ce2b66b2d0
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user