From b04d3d294369c3c71fc7872fb005b2e8abba8ec4 Mon Sep 17 00:00:00 2001 From: matejsemancik Date: Fri, 21 Feb 2025 09:26:44 +0100 Subject: [PATCH] Submit worklog with startedAt time --- .../commonMain/kotlin/dev/matsem/bpm/data/repo/WorklogRepo.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/src/commonMain/kotlin/dev/matsem/bpm/data/repo/WorklogRepo.kt b/shared/src/commonMain/kotlin/dev/matsem/bpm/data/repo/WorklogRepo.kt index 4fab30f..dd64ee2 100644 --- a/shared/src/commonMain/kotlin/dev/matsem/bpm/data/repo/WorklogRepo.kt +++ b/shared/src/commonMain/kotlin/dev/matsem/bpm/data/repo/WorklogRepo.kt @@ -48,8 +48,8 @@ internal class WorklogRepoImpl( jiraIssueId = jiraIssue.id, // Current system default time zone is our best bet rn. startedAtDate = createdAt.toLocalDateTime(TimeZone.currentSystemDefault()).date, - // Disabled until I find out how to properly work with time zones (no clear guidance on Tempo side) - // startedAtTime = createdAt.toLocalDateTime(TimeZone.UTC).time.dropNanos(), + // Current system default time zone is our best bet rn. + startedAtTime = createdAt.toLocalDateTime(TimeZone.currentSystemDefault()).time.dropNanos(), timeSpentSeconds = timeSpent.inWholeSeconds, description = description )