-
Notifications
You must be signed in to change notification settings - Fork 7
Open
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
New Issues