Display notification time in local timezone.

master
voussoir 2023-03-28 17:28:20 -07:00
parent 36f15bf057
commit ccaec4bf10
1 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ import net.voussoir.trkpt.helpers.isDifferentEnough
import net.voussoir.trkpt.helpers.isGpsEnabled
import net.voussoir.trkpt.helpers.isNetworkEnabled
import net.voussoir.trkpt.helpers.isRecentEnough
import net.voussoir.trkpt.helpers.iso8601
import net.voussoir.trkpt.helpers.iso8601_local
import net.voussoir.trkpt.helpers.random_device_id
import org.osmdroid.util.GeoPoint
import java.util.*
@ -315,7 +315,7 @@ class TrackerService: Service()
private fun displayNotification(): Notification
{
val timestamp = iso8601(currentBestLocation.time)
val timestamp = iso8601_local(currentBestLocation.time)
if (shouldCreateNotificationChannel())
{
createNotificationChannel()