From f52548b64890ec199b29ceace09145209e3ca6ea Mon Sep 17 00:00:00 2001 From: koreatlwls Date: Thu, 4 Apr 2024 09:52:06 +0900 Subject: [PATCH 1/3] =?UTF-8?q?#112=20fix=20:=20=EB=8D=B0=EC=9D=BC?= =?UTF-8?q?=EB=A6=AC=20=EB=8D=94=ED=95=98=EA=B8=B0=20=EB=A1=9C=EC=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../daily/usecase/AddMeasureTimeAtDailyUseCase.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/domain/daily/src/main/kotlin/com/titi/app/doamin/daily/usecase/AddMeasureTimeAtDailyUseCase.kt b/domain/daily/src/main/kotlin/com/titi/app/doamin/daily/usecase/AddMeasureTimeAtDailyUseCase.kt index c87a7882..15f30363 100644 --- a/domain/daily/src/main/kotlin/com/titi/app/doamin/daily/usecase/AddMeasureTimeAtDailyUseCase.kt +++ b/domain/daily/src/main/kotlin/com/titi/app/doamin/daily/usecase/AddMeasureTimeAtDailyUseCase.kt @@ -5,6 +5,9 @@ import com.titi.app.data.daily.api.DailyRepository import com.titi.app.doamin.daily.mapper.toDomainModel import com.titi.app.doamin.daily.mapper.toRepositoryModel import com.titi.app.doamin.daily.model.TaskHistory +import java.time.LocalDate +import java.time.ZoneId +import java.time.ZoneOffset import javax.inject.Inject import kotlin.math.max import org.threeten.bp.ZonedDateTime @@ -18,7 +21,13 @@ class AddMeasureTimeAtDailyUseCase @Inject constructor( endTime: String, measureTime: Long, ) { - val recentDaily = dailyRepository.getDateDaily()?.toDomainModel() + val recentDaily = dailyRepository + .getDateDaily( + startDateTime = LocalDate.now() + .atStartOfDay(ZoneId.systemDefault()) + .withZoneSameInstant(ZoneOffset.UTC) + .toString(), + )?.toDomainModel() recentDaily?.let { daily -> val taskHistory = TaskHistory( From 40cb472a89fb363b4816df26b819b6fb334d7da4 Mon Sep 17 00:00:00 2001 From: koreatlwls Date: Thu, 4 Apr 2024 09:52:45 +0900 Subject: [PATCH 2/3] #112 update : version --- build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt b/build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt index c081deda..723690cd 100644 --- a/build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt +++ b/build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt @@ -9,7 +9,7 @@ object BuildType { object AppConfig { const val APP_ID = "com.titi.app" - const val APP_VERSION_NAME = "1.0.0" - const val APP_VERSION_CODE = 21 + const val APP_VERSION_NAME = "1.0.1" + const val APP_VERSION_CODE = 22 const val APP_NAME = "TiTi" } \ No newline at end of file From dbd3806e01f6a1e272e68fec17cc01a26d1b2956 Mon Sep 17 00:00:00 2001 From: koreatlwls Date: Thu, 4 Apr 2024 09:53:17 +0900 Subject: [PATCH 3/3] #112 docs : release-note --- release-note.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release-note.txt b/release-note.txt index f3c0afb1..553378d6 100644 --- a/release-note.txt +++ b/release-note.txt @@ -1,2 +1,2 @@ -TiTi android dev 0.3.3(16) -- QA 0.3.2 버전 반영 \ No newline at end of file +TiTi android dev 1.0.1(22) +- 데일리 더하기 로직 수정 \ No newline at end of file