diff options
author | dan <dan.abramov@gmail.com> | 2024-12-16 17:35:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-16 17:35:44 +0000 |
commit | 21c288272d8e72d7b7d309ba984d1f0a8c1174c5 (patch) | |
tree | fbf3880a0d4b1de4932ef6427765064f087c5808 /patches/expo-updates+0.26.10.patch | |
parent | c4fffba11b0302ccaca0392628fa048bab656aa6 (diff) | |
download | voidsky-21c288272d8e72d7b7d309ba984d1f0a8c1174c5.tar.zst |
Update more Expo packages (#7127)
* Bump Expo resolutions * Bump packages * Bumpy bump
Diffstat (limited to 'patches/expo-updates+0.26.10.patch')
-rw-r--r-- | patches/expo-updates+0.26.10.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/patches/expo-updates+0.26.10.patch b/patches/expo-updates+0.26.10.patch new file mode 100644 index 000000000..6fc4fc5fc --- /dev/null +++ b/patches/expo-updates+0.26.10.patch @@ -0,0 +1,26 @@ +diff --git a/node_modules/expo-updates/ios/EXUpdates/Update/ExpoUpdatesUpdate.swift b/node_modules/expo-updates/ios/EXUpdates/Update/ExpoUpdatesUpdate.swift +index b85291e..546709d 100644 +--- a/node_modules/expo-updates/ios/EXUpdates/Update/ExpoUpdatesUpdate.swift ++++ b/node_modules/expo-updates/ios/EXUpdates/Update/ExpoUpdatesUpdate.swift +@@ -78,13 +78,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, |