Skip to main content
1 vote
1 answer
161 views

This code is trying to construct a OffsetDateTime from ZonedDateTime/LocalDatimeTime at Paris timezone. ZoneId paris = ZoneId.of( "Europe/Paris" ); OffsetDateTime offsetDateTime = ...
SoT's user avatar
  • 1,267
0 votes
1 answer
272 views

I have this java code: import org.joda.time.format.DateTimeFormat; import org.joda.time.format.DateTimeFormatter; import java.util.Date; DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormat....
Peter Penzov's user avatar
  • 1,102
1 vote
1 answer
178 views

I'm trying to deserialize an XML String to a Java Object using Quarkus 3.15 and JAXB. My Java Object has a property with type OffsetDateTime, but when I try to deserialize it I get the following ...
Shadowman's user avatar
  • 12.1k
1 vote
1 answer
53 views

I want to create a model class that contains createdDate feild type as LocalDateTime using swagger contract, when implementing using swagger contract it is generating offsetDateTime as type in dto. ...
Keerthi's user avatar
  • 11
0 votes
1 answer
941 views

I am migrating to quarkus 3 and i couldnt find a way to serialize properly (like in hibernate 5) my OffsetDateTime for a field annotated with jsonb in an entity : This is one of my entity, ...
AJO's user avatar
  • 43
0 votes
0 answers
113 views

I have the following code: public class Objc{ OffsetDateTime purchaseDate = new OffsetDateTime(); // getter/setter } .... String buyDate = ......; objc....
Peter Penzov's user avatar
  • 1,102
0 votes
0 answers
44 views

I've encountered a peculiar issue while using OffsetDateTime.now() in my Java code. On my machine, repeated calls to OffsetDateTime.now() return different values each time, which is what I expect. ...
pred1212's user avatar
-1 votes
1 answer
2k views

I have a sql timestamp that is being returned from a query in java. I need this date as an OffsetDateTime type, but my attempts to parse it have failed. I've tried the following. What other steps do I ...
Great Gale's user avatar
0 votes
2 answers
2k views

OffsetDateTime offsetDateTime = OffsetDateTime.now(ZoneId.of("UTC")); Above snippet gives me six-digits fractional seconds, but I need a utility method that returns current OffsetDateTime ...
Naim's user avatar
  • 17
4 votes
2 answers
2k views

Conversion I have a timestamp with an offset (-6) in the following format: 2019-11-30T00:01:00.000-06:00 and I want to convert it to an UTC timestamp, like: 2019-11-30T06:01:00.000Z Attempt I tried ...
F0cus's user avatar
  • 645
0 votes
1 answer
582 views

In tests i m trying to mock response from DB. Json: { description: "testDescription" contactPhone: "123456789" createDate: "18.04.2023 10:33:23" } My POJO has field (...
Nik Korn's user avatar
1 vote
1 answer
1k views

I want to parse the following String into an OffsetDateTime: OffsetDateTime test = OffsetDateTime.parse("2021-12-31T23:00:00.000+00:00"); However, this results in an exception: java.time....
Lars Wigger's user avatar
0 votes
1 answer
2k views

I test endpoints' basic security. Test mvc.perform(MockMvcRequestBuilders.post(path) .contentType(MediaType.APPLICATION_JSON) .content(objectMapper.writeValueAsString(OBJECT)) ...
John Smith's user avatar
5 votes
3 answers
5k views

I need the current system date and time in 2022-10-03T19:45:47.844Z format in a java class. I tried using the zoneddatetime and simple date format but couldn't get the write syntax or code from online....
Pranoy Kakubal's user avatar
1 vote
1 answer
96 views

The application can be accessed from a different timezone, so I am trying to store date time using class java.time.OffsetDateTime. startTime: "1996-12-19T16:39:57-08:00", endTime: "1996-...
Thirumal's user avatar
  • 9,966

15 30 50 per page