diff --git a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/internal/LogSnapshotter.kt b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/internal/LogSnapshotter.kt index 8bf4d816bfdff47cc35fe8a7535243b206097d78..fee05ee7047486d5abeb73265adfac940e12194d 100644 --- a/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/internal/LogSnapshotter.kt +++ b/Corona-Warn-App/src/main/java/de/rki/coronawarnapp/bugreporting/debuglog/internal/LogSnapshotter.kt @@ -3,6 +3,7 @@ package de.rki.coronawarnapp.bugreporting.debuglog.internal import android.content.Context import dagger.Reusable import de.rki.coronawarnapp.bugreporting.debuglog.DebugLogger +import de.rki.coronawarnapp.util.TimeAndDateExtensions.toUserTimeZone import de.rki.coronawarnapp.util.TimeStamper import de.rki.coronawarnapp.util.di.AppContext import de.rki.coronawarnapp.util.files.Zipper @@ -32,7 +33,7 @@ class LogSnapshotter @Inject constructor( if (it.delete()) Timber.tag(TAG).w("Deleted stale snapshot: %s", it) } - val now = timeStamper.nowUTC + val now = timeStamper.nowUTC.toUserTimeZone() val formatter = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss.SSS") val formattedFileName = "CWA Log ${now.toString(formatter)}" if (!snapshotDir.exists() && snapshotDir.mkdirs()) {