cesium / calendarium

📆 Calendar with special events, due dates and week schedule
https://calendario.cesium.di.uminho.pt/
11 stars 2 forks source link

fix: wrong date bug in schedule page #230

Closed diogogmatos closed 1 month ago

netlify[bot] commented 1 month ago

Deploy Preview for cesium-calendarium ready!

Name Link
Latest commit e42635928d9af30ce4428ec50eb4f309bbf3b50a
Latest deploy log https://app.netlify.com/sites/cesium-calendarium/deploys/66ec96ead3476f000837fb5a
Deploy Preview https://deploy-preview-230--cesium-calendarium.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

diogogmatos commented 1 month ago

I guess we will only know if this worked tomorrow 🫠

diogogmatos commented 1 month ago

@ruilopesm not sure this works yet, because the deploy preview was built today and the bug only happens when the deployed version was built on a different day than the current date. The highlighted day in the schedule page is the day when the app was built. For example, right now Calendarium is highlighting Thursday as the current day even though it is Friday, because the last deploy of the site was yesterday.

ruilopesm commented 1 month ago

@diogogmatos Let's wait till tomorrow, then 😁

ruilopesm commented 1 month ago

@diogogmatos I just checked calendarium on production and for me, on my mobile, it's correct (highlighting friday). Don't know if this is happening to just some people. In fact, yesterday it was happening on my computer 😅

diogogmatos commented 1 month ago

@diogogmatos I just checked calendarium on production and for me, on my mobile, it's correct (highlighting friday). Don't know if this is happening to just some people. In fact, yesterday it was happening on my computer 😅

@ruilopesm it only happens when you open the page directly in /schedule or refresh the page while in /schedule. If you open in / and then change to /schedule it works correctly. (I know very weird)

ruilopesm commented 1 month ago

@diogogmatos I can reproduce it now. What a strange bug 💀

joaodiaslobo commented 1 month ago

@diogogmatos @ruilopesm Unfortunately, I don't think this fixed the bug. 🥲 We have a very odd one on our hands :shipit:

diogogmatos commented 1 month ago

Fixed for now in #233