You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be nice to have type that keep exact point in time and timezone that we use for formatting it, will be helpful to calculate date in readable way
something like:
val tz =TimeZone.of("Asia/Jakarta")
val today =Clock.System.todayAt(tz).toZonedDateTime(tz) // beginning of today in my time zone
today.toString() // => 2022-06-21T00:00:00+07:00 - (ISO 8601 formatted)val meetTime = today +12.hours // => 2022-06-21T10:00:00+07:00// other user may have different time zone settings
meetTime.toString(TimeZone.of("Europe/Moscow")) // => 2022-06-21T08:00:00+03:00
db.saveTime(meetTime.toSqlTimestamp()) // => 2022-06-21T05:00:00Z
May be there is already something like that, which I missed?
The text was updated successfully, but these errors were encountered:
Would be nice to have type that keep exact point in time and timezone that we use for formatting it, will be helpful to calculate date in readable way
something like:
May be there is already something like that, which I missed?
The text was updated successfully, but these errors were encountered: