rejkpp / fxs

0 stars 0 forks source link

yesterday's rates are still labeled as current rates if less than 24 hours have passed #2

Closed rejkpp closed 2 years ago

rejkpp commented 2 years ago

the problem is how the difference is calculated.

possible solution is to have the if based on latest post. is there a value for the page?🤔

rejkpp commented 2 years ago

solved this by removing the time from date. to add time for first page, i created a time paramater on the front matter of the md file. this time paramater is a string not actual time/date value.

thus, it calculates from day to day again using midnight as starting point.