Skip to content
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

Pass timeZone information from the web client #11

Open
vindeolal opened this issue Apr 20, 2021 · 0 comments
Open

Pass timeZone information from the web client #11

vindeolal opened this issue Apr 20, 2021 · 0 comments

Comments

@vindeolal
Copy link
Contributor

Rule server doesn't have the timezone information of the client. And there are rules which try to find out the month from the earliestDateTime of any encounter example moment(programEncounter.earliestVisitDateTime).month(). Now if earlistVisitDateTime is 2020-12-31 18:30:00.000000 then the month comes 11 from DEA(Dec) and when run from the android client it returns 0(Jan). So if we can pass timezone info from the client then moment can be set to use that timezone before injecting it to the rule. https://stackoverflow.com/questions/17697696/set-global-time-zone.

NOTE: This will be still problematic when we use new Date() instead of moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant