Skip to content

no support for hijri dates #16

Description

@bluerex11178

Describe the bug
if you have a hijri date and probably any other date system that isnt Gregorian the program wont start

To Reproduce
Steps to reproduce the behavior:

  1. Go to your windows settings and set your date to hijri(i had it in english not even arabic)
  2. open your program
  3. See error

Expected behavior
the program to work without issues regarding dates

ds4windows_log.txt

Screenshots and Logs*
---> System.ArgumentOutOfRangeException: Specified time is not supported in this calendar. It should be between 07/18/0622 00:00:00 (Gregorian date) and 12/31/9999 23:59:59 (Gregorian date), inclusive. (Parameter 'time')
Actual value was 0.
at System.Globalization.HijriCalendar.CheckTicksRange(Int64 ticks)
at System.Globalization.HijriCalendar.GetDatePart(Int64 ticks, Int32 part)
at System.Globalization.HijriCalendar.GetMonth(DateTime time)
at System.DateTimeFormat.FormatCustomized[TChar](DateTime dateTime, ReadOnlySpan1 format, DateTimeFormatInfo dtfi, TimeSpan offset, ValueListBuilder1& result)
at System.DateTimeFormat.Format(DateTime dateTime, String format, IFormatProvider provider, TimeSpan offset)
at System.DateTime.ToString(String format)

Desktop (please complete the following information):

  • Controller Make and Model: Sony ps4 controller
  • OS: Windows 10 Pro 22h2
  • DS4Windows Version 3.9.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions