File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default class PrayerTimes {
24
24
sunrise : Date ;
25
25
dhuhr : Date ;
26
26
asr : Date ;
27
+ sunset : Date ;
27
28
maghrib : Date ;
28
29
isha : Date ;
29
30
@@ -39,6 +40,7 @@ export default class PrayerTimes {
39
40
let sunriseTime : Date ;
40
41
let dhuhrTime : Date ;
41
42
let asrTime : Date ;
43
+ let sunsetTime : Date ;
42
44
let maghribTime : Date ;
43
45
let ishaTime : Date ;
44
46
@@ -54,7 +56,7 @@ export default class PrayerTimes {
54
56
date . getMonth ( ) ,
55
57
date . getDate ( ) ,
56
58
) ;
57
- let sunsetTime = new TimeComponents ( solarTime . sunset ) . utcDate (
59
+ sunsetTime = new TimeComponents ( solarTime . sunset ) . utcDate (
58
60
date . getFullYear ( ) ,
59
61
date . getMonth ( ) ,
60
62
date . getDate ( ) ,
@@ -220,6 +222,7 @@ export default class PrayerTimes {
220
222
dateByAddingMinutes ( asrTime , asrAdjustment ) ,
221
223
calculationParameters . rounding ,
222
224
) ;
225
+ this . sunset = roundedMinute ( sunsetTime , calculationParameters . rounding ) ;
223
226
this . maghrib = roundedMinute (
224
227
dateByAddingMinutes ( maghribTime , maghribAdjustment ) ,
225
228
calculationParameters . rounding ,
You can’t perform that action at this time.
0 commit comments