JulianNorton / weather-10kb-wxkb

Weather forecast that's high performance and accessible

Home Page:https://wxkb.juliannorton.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing an hour in the hourly report

modelm opened this issue · 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

<%= data.hourly[i].startTime ? moment.unix(data.hourly[i].startTime).fromNow() + ' and ' : '' %><%= hourlyTime.fromNow()%><% if (params.hoursFormat === 'h') { %>

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

bc1a5c0

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

it's pulling from the same partial

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

commented

@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.