Skip to content

Commit

Permalink
Merge pull request #145 from TimerTiTi/release-1.1.0
Browse files Browse the repository at this point in the history
Release 1.1.0
  • Loading branch information
koreatlwls authored Jun 19, 2024
2 parents 936b5c0 + a2a2507 commit e220082
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object BuildType {

object AppConfig {
const val APP_ID = "com.titi.app"
const val APP_VERSION_NAME = "1.0.4"
const val APP_VERSION_CODE = 28
const val APP_VERSION_NAME = "1.1.0"
const val APP_VERSION_CODE = 29
const val APP_NAME = "TiTi"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ import java.time.LocalDate
import java.time.LocalDateTime

fun AMPMHours.toLocalDateTime(currentDate: LocalDate): LocalDateTime {
val hours = if (dayTime == AMPMHours.DayTime.AM) hours else hours + 12
return currentDate.atTime(hours, minutes)
val adjustedHours = when {
dayTime == AMPMHours.DayTime.AM && hours == 12 -> 0
dayTime == AMPMHours.DayTime.PM && hours == 12 -> 12
dayTime == AMPMHours.DayTime.PM -> hours + 12
else -> hours
}
return currentDate.atTime(adjustedHours, minutes)
}

fun LocalDateTime.toAMPMHours(): AMPMHours {
return AMPMHours(
hours = if (hour < 12) hour else hour - 12,
hours = when {
hour == 0 -> 12
hour > 12 -> hour - 12
else -> hour
},
minutes = minute,
dayTime = if (hour < 12) AMPMHours.DayTime.AM else AMPMHours.DayTime.PM,
)
Expand Down
5 changes: 2 additions & 3 deletions release-note.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
TiTi android dev 1.0.4(28)
- 데일리 수정 및 추가 (Log)
- 타임 테이블 infinite rendering
TiTi android dev 1.1.0(29)
- Time Mapper 수정

0 comments on commit e220082

Please sign in to comment.