PurpleTurtleCreative / completionist

Asana integration plugin for WordPress.
https://purpleturtlecreative.com/completionist/
GNU General Public License v3.0
3 stars 0 forks source link

Asana data cache TTL readable duration is wrong beyond 24 hours #235

Open MichelleBlanchette opened 1 month ago

MichelleBlanchette commented 1 month ago

Using WordPress's human readable time diff function does not offer the best user experience since it doesn't go up to days, weeks, or months and always shows hours, minutes, and seconds even though some are 0.

It also seems if a duration extends beyond 24 hours (I'm guessing), then all values are 0 which is not correct.

Screenshot 2024-10-05 at 3 03 10 PM

MichelleBlanchette commented 3 weeks ago

I see now that it's actually just cutting off the day+ durations—or something like that—since implementing the more accurate display in #231

Old, wrong Screenshot 2024-10-30 at 8 43 20 PM

New, correct Screenshot 2024-10-30 at 8 43 36 PM