-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/calendar-part4 #149
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be working fine but I have one concern. @JaneMoroz I think we should consolidate the use of current date to one place. Right now we're just creating new Date all over the place (for current date). There is a current date in the user store currently. Would it be ok to just make use of that for all cases of current date that is needed?
@Dan-Y-Ko @timothyrusso If I understand correctly, we've decided to convert everything to the user's timezone (the one we store in the database), regardless of the user's current location. In the future, we plan to implement a function that compares the user's timezone in the database with the timezone on the client. If the timezones differ, a modal will appear, offering the user the option to update their timezone settings. Dan, is that correct? Right now we use
So to better understand what I'm talking about you need to use chrome browser and change your client timezone to some extreme case, I chose GMT -11 timezone. So here's an instruction:
Now you can see everything is weird in the calendar, basically because our calendar uses both timezones right now. It uses the client timezone and also the user's timezone from the database through Btw in case of Jessica, if you want to see how calendar looks like in her timezone, you can add one more location (set location name to "Melbourne" and "Timezone Id" to "Australia/Melbourne") and then just switch between Melbourne and Alofi. |
If you mean But I agree if we have a client component which needs the current date, it should get it from the store. But right now we simply get the current date in the client timezone, probably we need to convert it and only then store it idk |
Yes |
Description
This task will handle disabled states for weekly checkin in the event panel. Past checkins will be disabled.
Issue link
Fixes # (issue)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: