Skip to content

Commit 83948bb

Browse files
committed
fix Calendar
1 parent a665ac1 commit 83948bb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

AppStoreManager.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |spec|
22

33
spec.name = "AppStoreManager"
4-
spec.version = "1.3.1"
4+
spec.version = "1.3.2"
55
spec.summary = "A new version checking framework in Swift."
66

77
spec.homepage = "https://knottx.github.io"

AppStoreManager.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@
381381
"@executable_path/Frameworks",
382382
"@loader_path/Frameworks",
383383
);
384-
MARKETING_VERSION = 1.3.1;
384+
MARKETING_VERSION = 1.3.2;
385385
PRODUCT_BUNDLE_IDENTIFIER = com.knottx.AppStoreManager;
386386
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
387387
SKIP_INSTALL = YES;
@@ -410,7 +410,7 @@
410410
"@executable_path/Frameworks",
411411
"@loader_path/Frameworks",
412412
);
413-
MARKETING_VERSION = 1.3.1;
413+
MARKETING_VERSION = 1.3.2;
414414
PRODUCT_BUNDLE_IDENTIFIER = com.knottx.AppStoreManager;
415415
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
416416
SKIP_INSTALL = YES;

Sources/AppStoreManager/AppStoreManagerConstant.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ struct AppStoreManagerConstant {
1818
extension Date {
1919

2020
static func days(since date: Date) -> Int {
21-
let calendar = Calendar.current
21+
let calendar = Calendar(identifier: .gregorian)
2222
let components = calendar.dateComponents([.day], from: date, to: Date())
2323
return components.day ?? 0
2424
}

0 commit comments

Comments
 (0)