stankovski / quran-phone

Quran Phone
46 stars 27 forks source link

DateTime parsing error for Arabic culture #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
QuranPhone Version: 0.4.1.0
OS Version: Microsoft Windows NT 8.0.10328.0
Unhandled Exception
Specified time is not supported in this calendar. It should be between 
04/30/1900 00:00:00 (Gregorian date) and 11/16/2077 23:59:59 (Gregorian date), 
inclusive.
Parameter name: time
   at System.Globalization.UmAlQuraCalendar.CheckTicksRange(Int64 ticks)
   at System.Globalization.UmAlQuraCalendar.GetDatePart(DateTime time, Int32 part)
   at System.Globalization.UmAlQuraCalendar.GetYear(DateTime time)
   at System.DateTimeFormat.FormatCustomized(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset)
   at System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi, TimeSpan offset)
   at System.DateTimeFormat.Format(DateTime dateTime, String format, DateTimeFormatInfo dtfi)
   at System.DateTime.ToString(String format)
   at SQLite.SQLiteCommand.BindParameter(Statement stmt, Int32 index, Object value, Boolean storeDateTimeAsTicks)
   at SQLite.PreparedSqlLiteInsertCommand.ExecuteNonQuery(Object[] source)
   at SQLite.SQLiteConnection.Insert(Object obj, String extra, Type objType)
   at SQLite.SQLiteConnection.Insert(Object obj)
   at Quran.Core.Data.BookmarksDatabaseHandler.AddTag(String name)
   at Quran.Core.Data.DuaGenerator.Generate()
   at Quran.Core.ViewModels.SettingsViewModel.GenerateDua()
   at Cirrious.MvvmCross.ViewModels.MvxCommand.Execute(Object parameter)
   at System.Windows.Controls.Primitives.ButtonBase.ExecuteCommand()
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)

Original issue reported on code.google.com by denis.st...@gmail.com on 29 Nov 2013 at 5:07

GoogleCodeExporter commented 9 years ago

Original comment by denis.st...@gmail.com on 29 Nov 2013 at 5:28