Skip to content

Commit

Permalink
Remove joda time dependency
Browse files Browse the repository at this point in the history
In order to convert dates to UTC dates and UTC dates to dates, remove joda time dependency and use JDK 8 ZonedDateTime data type.
Issue:102003
  • Loading branch information
iroqueta committed Apr 24, 2023
1 parent 6543771 commit ffe3417
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/src/main/java/com/genexus/specific/java/GXutil.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private ZonedDateTime getZonedDateTime(Date value, TimeZone tz){
int hour = calendar.get(Calendar.HOUR_OF_DAY);
int minute = calendar.get(Calendar.MINUTE);
int second = calendar.get(Calendar.SECOND);
int nanoOfSecond = calendar.get(Calendar.MILLISECOND);
int nanoOfSecond = calendar.get(Calendar.MILLISECOND) * 1000000;

zdt = ZonedDateTime.of(LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond), tz.toZoneId());
}
Expand Down

0 comments on commit ffe3417

Please sign in to comment.