Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
1.1 kB · 26 lines
at main
123456789101112131415161718192021222324252627diff --git a/ios/EXUpdates/Update/ExpoUpdatesUpdate.swift b/ios/EXUpdates/Update/ExpoUpdatesUpdate.swiftindex 6c92da376636ef561d241f8ac303af2bda2098d5..ca886b04f03083545ab80aa6953759ab9e20a7bf 100644--- a/ios/EXUpdates/Update/ExpoUpdatesUpdate.swift+++ b/ios/EXUpdates/Update/ExpoUpdatesUpdate.swift@@ -81,13 +81,20 @@ public final class ExpoUpdatesUpdate: Update { status = UpdateStatus.StatusPending } + // Instead of relying on various hacks to get the correct format for the specific+ // platform on the backend, we can just add this little patch..+ let dateFormatter = DateFormatter()+ dateFormatter.locale = Locale(identifier: "en_US_POSIX")+ dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ"+ let date = dateFormatter.date(from:commitTime) ?? RCTConvert.nsDate(commitTime)!+ return Update( manifest: manifest, config: config, database: database, updateId: uuid, scopeKey: config.scopeKey,- commitTime: RCTConvert.nsDate(commitTime),+ commitTime: date, runtimeVersion: runtimeVersion, keep: true, status: status,