Skip to content

Commit

Permalink
🐛 Refix incorrect widget data #219
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez committed Jan 15, 2024
1 parent 47ec12f commit 47b0cc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ internal fun updateAppWidget(
val prayers = parsed.getJSONArray("prayers")

val calendar = Calendar.getInstance()
val todayIndex = calendar.get(Calendar.DAY_OF_MONTH);
val todayIndex = calendar.get(Calendar.DAY_OF_MONTH) - 1;
val todayPrayer: JSONObject = prayers.get(todayIndex) as JSONObject;

val subuhTime = todayPrayer.getLong("fajr")
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: App waktu solat seluruh Malaysia

publish_to: "none" # Remove this line if you wish to publish to pub.dev

version: 2.11.2+142
version: 2.11.3+143

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit 47b0cc4

Please sign in to comment.