Skip to content

Commit

Permalink
fix: removed forgotten code that was breaking the calcualtion
Browse files Browse the repository at this point in the history
  • Loading branch information
khawarizmus committed Oct 1, 2023
1 parent 2b2b9cc commit f259be7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const calculator = new StaticCalculator({
date: new Date(2022, 0, 1),
latitude: 2.9213,
longitude: 101.6559,
method: Methods.SINGAPORE,
method: Methods.MALAYSIA,
adjustments: { dhuhr: 3, asr: 3, isha: 2 },
})
const prayerTimes = calculator.getAllPrayerTimes()
Expand Down
2 changes: 1 addition & 1 deletion src/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class BaseCalculator {

public _adjustForRamadan(): boolean {
const adjust = false
const date = this._prayerConfig.date.toTemporalInstant()
const date = this._prayerConfig.date
const method = this._prayerConfig.method
const hijriFormatter = new Formatter({
calendar: this._prayerConfig.hijriCalendar ?? 'islamic-umalqura',
Expand Down

0 comments on commit f259be7

Please sign in to comment.