Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Sebastian Brudziński
Sebastian BrudzińskiReporter
Chongsun Ahn
Chongsun AhnStory Points
3
Original estimate
3d
Time tracking
1d 2h 30m logged1d 5h 30m remaining
Components
Sprint
None
Fix versions
Priority
Time Assistant
Time Assistant
Created January 9, 2017 at 10:44 PM
Updated February 6, 2017 at 1:52 PM
Resolved February 6, 2017 at 1:51 PM
Change date implementation in the Requisition code to match our new dates with timezone design. (https://openlmis.atlassian.net/wiki/display/OP/OpenLMIS+v3+Timezone+Spike)
Affected code (do not assume this is comprehensive):
FacilityDto, ProcessingPeriodDto, ProcessingScheduleDto
LocalDatePersistenceConverter, LocalDateTimePersistenceConverter - uses LocalDate and java.sql.Date
ProofOfDelivery
receivedDate - LocalDate (instant date)
OrderCsvHelper - uses LocalDate and LocalDateTime for order file columns
Order
createdDate - LocalDateTime (instant date)
OrderService - uses LocalDateTime from order
Acceptance Criteria
All business dates should be of type date in the database, LocalDate in the Java backend code and serialize to an ISO-8601 string (w/o time information) via the API
All instant dates should be of type timestamp with timezone in the database, ZonedDateTime in the Java backend code and serialize to an ISO-8601 string (with time and UTC timezone information) via the API
java.util.Date should not be used, but LocalDate should be used instead