Skip to content

Commit 2a31c24

Browse files
committed
fix: "smart" method defaults null timezone
It was implemented in the hourly and daily variant, but not here. Related commit: 2124f61
1 parent acb852c commit 2a31c24

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/src/main/kotlin/com/openmeteo/api/OpenMeteo.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ class OpenMeteo(
395395

396396
operator fun invoke(
397397
vararg options: Query.Options,
398-
timeZone: TimeZone? = null,
398+
timeZone: TimeZone? =
399+
TimeZone.auto.takeIf { options.any { it is QueryDaily.Options } },
399400
startDate: Date? = null,
400401
endDate: Date? = null,
401402
pastDays: Int? = null,

0 commit comments

Comments
 (0)