From 53c2161041f08ee58918e12aee6a72e32a83f4a2 Mon Sep 17 00:00:00 2001 From: Brian Chang Date: Wed, 30 Aug 2023 13:52:50 +0800 Subject: [PATCH] Fix issue #1148 --- OPassData/General/DateInRegionTransform.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OPassData/General/DateInRegionTransform.swift b/OPassData/General/DateInRegionTransform.swift index c5feca61..8361cfa7 100644 --- a/OPassData/General/DateInRegionTransform.swift +++ b/OPassData/General/DateInRegionTransform.swift @@ -11,7 +11,7 @@ import SwiftDate struct StringToDate: TransformFunction { static func transform(_ string: String) -> DateInRegion { - return string.toISODate()! + return string.toISODate(region: .current)! } }