mirror of
https://github.com/typeable/extra-time.git
synced 2024-12-25 18:12:03 +03:00
B2H-443: Correct order page (#5452)
* b2h-443: Order page corrections * b2h-443: Error details inside dialog * b2h-443: Convert UTCTime to EST in CancellationPolicyData * b2h-443: Capitalize more titles * b2h-443: Rename errorMsgTd -> mkErrorMsgDetails
This commit is contained in:
parent
3b3920ccae
commit
c7ba9a0945
@ -9,7 +9,9 @@ module Data.Time.Extra
|
||||
, UTCTime'(..)
|
||||
, _UTCTime'
|
||||
, mskTimeZone
|
||||
, estTimeZone
|
||||
, toAPITimeMSK
|
||||
, toAPITimeEST
|
||||
, apiDate
|
||||
, module Data.Time.LocalTime.Short
|
||||
, TimeFrame
|
||||
@ -160,9 +162,15 @@ apiDate = prism' toApiDate fromApiDate
|
||||
mskTimeZone :: TimeZone
|
||||
mskTimeZone = TimeZone (3 * 60) False "MSK"
|
||||
|
||||
estTimeZone :: TimeZone
|
||||
estTimeZone = TimeZone (-5 * 60) False "EST"
|
||||
|
||||
toAPITimeMSK :: UTCTime -> ShortZonedTime
|
||||
toAPITimeMSK = shortZonedTime . utcToZonedTime mskTimeZone
|
||||
|
||||
toAPITimeEST :: UTCTime -> ShortZonedTime
|
||||
toAPITimeEST = shortZonedTime . utcToZonedTime estTimeZone
|
||||
|
||||
data TimeFrameType
|
||||
= TimeOfArrival
|
||||
| TimeOfDeparture
|
||||
|
Loading…
Reference in New Issue
Block a user