Skip to content

Pass timeZone information from the web client #11

@vindeolal

Description

@vindeolal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions