Ensure all microservices get system time zone from configuration on startup

Description

Even though there is a system configuration setting in the env file, when currently looking at this search, https://github.com/search?q=org%3AOpenLMIS+TIME_ZONE_ID&type=Code, only two services take the setting and use it in their service. In order to ensure service reports show datetimes with the system time zone, any service that contains reports needs to take TIME_ZONE_ID and keep track of it.

Services which currently have the setting in their service:

  • Requisition

  • Fulfillment

Services which likely need to have the setting "stored" (meaning not in persistent storage), because they have reports:

  • Reference Data

  • Report

  • CCE

  • Stock Management

Acceptance Criteria

  • Using the pattern found in Fulfillment service, ensure the remaining services mentioned above have the time zone "stored" in their service

  • Add system time zone value to new API resource in reference data (either something like /systemTimeZone or generic /localeSettings, see )

Activity

Show:
Mateusz Kwiatkowski
August 22, 2018, 1:43 PM

Endpoint works for me, it is not secured so everything seems fine, moving to Done.

Done

Assignee

Paulina Buzderewicz

Reporter

Chongsun Ahn

Labels

Story Points

3

Time tracking

0m

Time remaining

0m

Epic Link

Sprint

None

Fix versions

Priority

Major