Skip to content

Commit

Permalink
fix: use RTCDateTime instead of UTCDateTime #162
Browse files Browse the repository at this point in the history
  • Loading branch information
915dbfl committed Nov 14, 2023
1 parent f5b4086 commit dc4f83f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import org.swm.att.common_ui.util.Formatter
import org.swm.att.common_ui.util.getRTCDateTime
import org.swm.att.common_ui.util.getUTCDateTime
import java.util.Calendar
import java.util.concurrent.TimeUnit
Expand Down Expand Up @@ -37,7 +38,7 @@ object AlarmManager {
pendingIntentList[preorderId] = pendingIntent
alarmManager.setExact(
AlarmManager.RTC,
alarmTime.time - TimeUnit.MINUTES.toMillis(10),
alarmTime.getRTCDateTime().time - TimeUnit.MINUTES.toMillis(10),
pendingIntent
)
}
Expand Down

0 comments on commit dc4f83f

Please sign in to comment.