Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Watch crash on get var millisecondsSince1970 #23

Open
furiosFast opened this issue Oct 26, 2020 · 3 comments
Open

Apple Watch crash on get var millisecondsSince1970 #23

furiosFast opened this issue Oct 26, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@furiosFast
Copy link

furiosFast commented Oct 26, 2020

On Apple Watch i get this error that cause the crash of the app:
WatchKit App Extension[548:794557] Fatal error: Double value cannot be converted to Int because the result would be greater than Int.max: file Swift/armv7k-apple-watchos.swiftinterface, line 31242

The problem is for the var millisecondsSince1970 in the file Date+Extension.swift (line 29):

// Extended functionality to get milliseconds from 1970 to present time
public var millisecondsSince1970: Int {
    return Int((self.timeIntervalSince1970 * 1000.0).rounded())
}
@emvakar emvakar self-assigned this Oct 26, 2020
@emvakar emvakar added the bug Something isn't working label Oct 26, 2020
@emvakar emvakar added this to the 1.0.6 milestone Oct 26, 2020
@emvakar
Copy link
Owner

emvakar commented Oct 26, 2020

@furiosFast Hello, thank you! I’m check and fix it soon and share with you!

@furiosFast
Copy link
Author

furiosFast commented Oct 26, 2020

maybe you can use Int64

@furiosFast
Copy link
Author

Hi, any news?

@emvakar emvakar moved this to 🆕 New in @EKAstroCalc Jul 16, 2022
@emvakar emvakar moved this from 🆕 New to 📋 Backlog in @EKAstroCalc Jul 16, 2022
@emvakar emvakar removed this from the 1.0.6 milestone Jul 16, 2022
@emvakar emvakar moved this to To do in Astrology Calculator Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants