99 questions
0
votes
0
answers
74
views
Troubleshooting JitPack Build Errors with ThreeTenABP Fork
Our legacy app relies heavily on JakeWharton’s ThreeTenABP:
https://github.com/JakeWharton/ThreeTenABP
We know this library is no longer maintained and should eventually be migrated away from. However,...
0
votes
1
answer
81
views
Transform Java LocalDate in ThreeTen Library LocalDate
Im working with this library : implementation("com.github.thellmund.Android-Week-View:core:5.2.4")
In my calendar adapter im using this method :
override fun onRangeChanged(...
1
vote
2
answers
485
views
Time zone day light saving changes problem
In my country, we no longer observe Daylight Saving Time. We now use Standard Time year-round.
Therefor a lot of devices has run into problem. I used different approaches to fix this but just one of ...
0
votes
1
answer
442
views
Convert a UTC time to a local current time
I am using the followng library threetenbp
I am fetching a date/time from our API response which is in string format
The time I am being sent is this Sep 30, 2023, 4:59:00 PM
So I need to convert that ...
2
votes
1
answer
473
views
TzdbZoneRulesProvider not working in java.time
I'm migrating an old code base away from the threeten backport library to use java.time instead. There is a test method that no longer works, but I don't know how to fix it.
Here is the class before ...
4
votes
1
answer
2k
views
Formatting a date time string
I have the following date which we get from an API 2022-11-23 06:12:31
I am wondering if my approach is the best.
And I need to display in this format 23 November 2022
I am using substringbefore to ...
1
vote
0
answers
33
views
org.threeten.bp zonedDateTime.parse does not work [duplicate]
Hi I am trying to use org.threeten.bp library and format a date string to zonnedDateTime but it does not work.
val dateFormatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd&...
7
votes
1
answer
2k
views
Jetpack Compose Preview failing with LocalDate.now() from ThreeTen
Rendering the Jetpack Compose Preview fails when we have some code calling LocalDate.now() from it. We have tried setting a locale on the preview but that does not help, and we have not found any ...
0
votes
1
answer
1k
views
Error org.threeten.bp.format.DateTimeParseException
I know that there is a lot of similar questions like this but cant apply these solutions on them.
i am trying to transform date that i am getting from server int this format: 2019-07-26T02:39:32....
-1
votes
2
answers
2k
views
error: incompatible types: Object cannot be converted to LocalDate
In my JSON response I receive the date as a timestamp value, e.g. below:
"dt":1620345600
I am trying to convert this into a LocalDate using the ThreeTen BP library. I have tried to apply a ...
0
votes
1
answer
555
views
Creating typeconvertor to convert Int timestamp to LocalDate
What would be the best way to go about this. I am using 2 different APIs and one returns a date as a String and the other returns date as an Int timestamp in the format of e.g. 162000360
I was using ...
2
votes
1
answer
375
views
How to stabilize flaky DateTimeFormatter#ofLocalizedDateTime test?
Given the following ThreeTenBp based DateFormatter:
class DateFormatter private constructor() {
private val dateShortTimeShortFormatter =
org.threeten.bp.format.DateTimeFormatter....
2
votes
1
answer
1k
views
Date: getDisplayName method adds point character to dayOfWeek only on CI
Calling localDate.getDayOfWeek().getDisplayName in my UnitTest running on CircleCI returns a different value compared to running the UnitTest locally.
Here is the simplified sample code:
LocalDate ...
0
votes
1
answer
810
views
Android error "org.threeten.bp.temporal.UnsupportedTemporalTypeException: Unsupported unit: Seconds"
I am using the 'com.jakewharton.threetenabp:threetenabp:1.2.4' library for using Newer features DateTimeFormatter for lower apis version.
I have a situation where I have to first convert the the date ...
0
votes
1
answer
658
views
Parse Date String Return Wrong Month
I try to parse date string but always get wrong month. Here's my code.
This is code to select date from calender
@OnClick(R.id.tedit_tgllahir_addnew) void showTimeDialog(){
calendar = Calendar....