weather-10kb-wxkb icon indicating copy to clipboard operation
weather-10kb-wxkb copied to clipboard

Missing an hour in the hourly report

Open modelm opened this issue 5 years ago • 8 comments

What's the current situation?

Missing an hour in the hourly report for https://wxkb.io/sacramento

What do you recommend?

Change "in 5 hours and in 7 hours" to "in 5 hours until 7 hours"

image

modelm avatar Jun 12 '19 11:06 modelm

https://github.com/JulianNorton/weather-10kb-wxkb/blob/df24e95897c0fe1b30ea23944db05f140a949775/views/partials/hourly.ejs#L31

JulianNorton avatar Jun 12 '19 13:06 JulianNorton

https://github.com/JulianNorton/weather-10kb-wxkb/blob/master/views/partials/hourly.ejs

JulianNorton avatar Jun 12 '19 13:06 JulianNorton

fixed in https://github.com/JulianNorton/weather-10kb-wxkb/commit/bc1a5c0b953393583c19f8a068693f93f6d2bf23

JulianNorton avatar Jun 12 '19 13:06 JulianNorton

@modelm do you know how to remove the second "in"?

https://github.com/JulianNorton/weather-10kb-wxkb/commit/bc1a5c0b953393583c19f8a068693f93f6d2bf23

JulianNorton avatar Jun 12 '19 13:06 JulianNorton

Screen Shot 2019-06-12 at 9 35 43 AM

it's pulling from the same partial

JulianNorton avatar Jun 12 '19 13:06 JulianNorton

That's coming from hourlyTime.fromNow() - one way would be something like hourlyTime.fromNow().replace(/in /, '')

modelm avatar Jun 12 '19 13:06 modelm

@JulianNorton @modelm If you want I can take this.I can try to normalize all the the strings that come from momentjs

Let me know your thoughts.

ivanfrias avatar Oct 03 '19 10:10 ivanfrias

Please do Ivan!

On Oct 3, 2019, at 6:29 AM, Ivan [email protected] wrote:

 @JulianNorton @modelm If you want I can take this.I can try to normalize all the the strings that come from momentjs

Let me know your thoughts.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

JulianNorton avatar Oct 03 '19 13:10 JulianNorton