<dependency>
<groupId>com.veydertimes</groupId>
<artifactId>veydertimes</artifactId>
<version>1.0.0</version>
</dependency>
TimeZone systemTimeZone = TimeZoneUtil.getCurrentTimeZone();
LocalDateTime dateTime = LocalDateTime.now();
TimeZone sourceTimeZone = TimeZone.getTimeZone("America/New_York");
TimeZone targetTimeZone = TimeZone.getTimeZone("Asia/Shanghai");
LocalDateTime convertedDateTime = TimeZoneUtil.convertDateTimeToTimeZone(dateTime, sourceTimeZone, targetTimeZone);
LocalDateTime dateTime = LocalDateTime.now();
String formattedDate = DateFormatUtil.format(dateTime, "yyyy-MM-dd HH:mm:ss");
String dateString = "2022-01-01 12:00:00";
LocalDateTime parsedDateTime = DateFormatUtil.parse(dateString, "yyyy-MM-dd HH:mm:ss");
properties
veydertimes.defaultTimeZone=Asia/Shanghai
veydertimes.defaultDateFormat=yyyy-MM-dd HH:mm:ss