avniproject / avniproject/rules-server
Pass timeZone information from the web client
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
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.**
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.