mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
iOS Date Bug #313
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pingus-nikalex on GitHub (Feb 28, 2020).
I have date in format "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ"
have 2 different tables:
Pin
class PinEntity: NSManagedObject {
}
and
SyncTable
class SyncDateEntity: NSManagedObject {
}
After saving one date to this tables: Example Date:
▿ 2020-02-28 12:09:47 +0000
I have different time in this tables:
pins has
▿ 2020-02-28 12:09:47 +0000
SyncTable has
▿ 2020-02-28 12:09:47 +0000
This milliseconds very important because when I fetch pins - with
func getPinsForSync(lastSyncDate:Date, completion:(([PinEntity]?) -> ())?) {
let pinsEntity = try! dataStack.fetchAll(From().where(.updatedAt > lastSyncDate))
if(completion != nil) {
completion!(pinsEntity)
}
}
always fetching one last pin and we need to sync his. Not correct.
Can anybody help with this problem, because I don't any ideas how to fix this.
@JohnEstropia commented on GitHub (Feb 28, 2020):
Can you show how you are setting the dates for PinEntity and SyncDateEntity?
@pingus-nikalex commented on GitHub (Mar 11, 2020):
Sorry it's server side bug. All work correct.