ahmedoid / hijri_date

Convert between Hijri Calendar and Gregorian Calendar date.
Other
18 stars 30 forks source link

1h difference for Asr in Finland #22

Open ramialkaro opened 1 year ago

ramialkaro commented 1 year ago

The issue is related to the calculation of Hijri date in Flutter app after the daylight saving time (DST) change. Specifically, the problem occurs in Helsinki (Finland), where the time difference between the standard time and DST is one hour Asr (Praying time). As a result, the Hijri date calculation for Helsinki is one hour ahead or behind, depending on the time of the year.

Code:

final params = CalculationMethod.muslim_world_league.getParameters();
  params.madhab = Madhab.hanafi;
  final prayerTimes = PrayerTimes.today(myCoordinates, params); 

Demo:

image