mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 06:37:46 +00:00
fix weather duration after latest nushell changes (#580)
This commit is contained in:
parent
8e086d8771
commit
ce2b66b2d0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue