-
-
Notifications
You must be signed in to change notification settings - Fork 53
converted time data to local timezone #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is not working as intended because you are converting the time on the server side. What we need is to covert the time to the client's time zone. Converting this in ejs template will also not help as templates are also compiled on the server-side. |
How about this? I'm changing the startTime |
Actually, on second thought, |
Not working when entries are more than the pagination page size. Also what is the need of using Intl when you can simply use |
You can populate the database by running the background service and changing IsLatestContest accordingly. |
So I have fixed the pagination bug by running the code when the page is changed. As for the timezone, I've removed the redundant parts. Hopefully this suffices. Do let me know if there's anything I can do better. |
Seems good. |
* converted time data to local timezone * Convert time on client-side instead of server-side * Fixed pagination bug
Issue: #4
So unfortunately, I couldn't find a way to seed the database(maybe I missed it in the README) but I tried this with a dummy array and it seems to work.