Skip to content

Commit

Permalink
Merge pull request #163 from AII-the-time/fix/#162-alarm-issue
Browse files Browse the repository at this point in the history
[Fix/#162] alarm issue 해결
  • Loading branch information
915dbfl authored Nov 14, 2023
2 parents fca336c + c76e036 commit 8ff9b97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
applicationId = "org.swm.att"
minSdk = ProjectConfig.minSdk
targetSdk = ProjectConfig.targetSdk
versionCode = 15
versionName = "3.1.1"
versionCode = 16
versionName = "1.3.2"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
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 8ff9b97

Please sign in to comment.