You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 is2020-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.
The text was updated successfully, but these errors were encountered: