File tree Expand file tree Collapse file tree
src/main/java/com/fengwenyi/javalib/convert Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2018-2022 Erwin Feng
3+ Copyright (c) 2018-2023 Erwin Feng
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 88:bug: Bug
99```
1010
11+ ## v2.2.3
12+
13+ :bug : Bug Fixes
14+
15+ - 修复 ` DateTimeUtils.toInstant(Date) ` 可能出现报错的问题。
16+
17+
1118## v2.2.2
1219
13202022.11.17 ~
Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ JavaLib,是一个Java开发基础工具类库,对项目开发中常用的工
3737<dependency >
3838 <groupId >com.fengwenyi</groupId >
3939 <artifactId >JavaLib</artifactId >
40- <version >2.2.2 </version >
40+ <version >2.2.3 </version >
4141</dependency >
4242```
4343
4444** Gradle**
4545
4646``` groovy
47- implementation 'com.fengwenyi:JavaLib:2.2.2 '
47+ implementation 'com.fengwenyi:JavaLib:2.2.3 '
4848```
4949
5050## 功能列表:
Original file line number Diff line number Diff line change 66
77 <groupId >com.fengwenyi</groupId >
88 <artifactId >JavaLib</artifactId >
9- <version >2.2.2 </version >
9+ <version >2.2.3-SNAPSHOT </version >
1010 <packaging >jar</packaging >
1111 <name >JavaLib</name >
1212 <description >JAVA开发常用工具集</description >
Original file line number Diff line number Diff line change @@ -246,7 +246,8 @@ public static LocalDateTime toLocalDateTime(Instant instant) {
246246 * @return {@link Instant}
247247 */
248248 public static Instant toInstant (Date date ) {
249- return date .toInstant ();
249+ // return date.toInstant();
250+ return Instant .ofEpochMilli (date .getTime ());
250251 }
251252
252253 /**
You can’t perform that action at this time.
0 commit comments