New features:
- Finnish localization
- Sunrise & sunset compass direction added to start screen
- Error reporting added
- Version history added
- Link to rate & review added
Version 1.2 has been available in the store for a few days now.
New features:
Version 1.2 has been available in the store for a few days now.
private static DateTime julianDateToDate(double julianDate)results in an ArgumentOutOfRangeException if the argument julianDate is NaN (which happens when the app logic fails to calculate various twilight times – they cannot be calculated at all at certain times of year and place).
{
DateTime dt = new DateTime(1970, 1, 1);
dt = dt.AddMilliseconds((julianDate + 0.5 - J1970) * msInDay);
return dt;
}
private static DateTime julianDateToDate(double julianDate)The lesson here obviously is: the emulator is not the same thing as the real device. Remember to test your apps on the device as well!
{
if (double.IsNaN(julianDate))
throw new ArgumentOutOfRangeException("julianDate");
DateTime dt = new DateTime(1970, 1, 1);
dt = dt.AddMilliseconds((julianDate + 0.5 - J1970) * msInDay);
return dt;
}