From 7c410989aa13033cc1c70fd281189ad4ce7a3457 Mon Sep 17 00:00:00 2001 From: bvn13 Date: Thu, 2 Mar 2023 18:04:38 +0300 Subject: [PATCH] catching errors while writing date --- GpxAndroidSdk.iml | 47 ------------------- .../me/bvn13/sdk/android/gpx/GpxWriter.kt | 2 +- 2 files changed, 1 insertion(+), 48 deletions(-) delete mode 100644 GpxAndroidSdk.iml diff --git a/GpxAndroidSdk.iml b/GpxAndroidSdk.iml deleted file mode 100644 index 2e806b0..0000000 --- a/GpxAndroidSdk.iml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/kotlin/me/bvn13/sdk/android/gpx/GpxWriter.kt b/src/main/kotlin/me/bvn13/sdk/android/gpx/GpxWriter.kt index 1dc9085..4393765 100644 --- a/src/main/kotlin/me/bvn13/sdk/android/gpx/GpxWriter.kt +++ b/src/main/kotlin/me/bvn13/sdk/android/gpx/GpxWriter.kt @@ -265,7 +265,7 @@ fun toXmlString(value: OffsetDateTime?, nodeName: String): String { try { return "<${nodeName}>${value.format(DTF)}" } catch (e: Exception) { - log.warn(String.format("Unable to format datetime value %s in node %s", value, nodeName), e) + log.warn(String.format("Unable to format datetime value in node %s", nodeName), e) return "" } } else {