-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 查询时支持根据部分属性冒号关键词的格式 * fix: 修正dockerfile里的联系人邮件地址 * fix: 修复初始化查询索引时无法初始化所有条目的问题
- Loading branch information
Showing
7 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=0.19.2 | ||
version=0.19.3 |
23 changes: 23 additions & 0 deletions
23
server/src/main/java/run/ikaros/server/infra/utils/TimeUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package run.ikaros.server.infra.utils; | ||
|
||
|
||
import java.text.SimpleDateFormat; | ||
import java.util.Date; | ||
|
||
public class TimeUtils { | ||
/** | ||
* 格式化日期时间戳. | ||
*/ | ||
public static String formatTimestamp(Long timestamp) { | ||
return formatTimestamp(timestamp, "yyyy-MM-dd"); | ||
} | ||
|
||
/** | ||
* 格式化日期时间戳. | ||
*/ | ||
public static String formatTimestamp(Long timestamp, String pattern) { | ||
Date date = new Date(timestamp); | ||
SimpleDateFormat sdf = new SimpleDateFormat(pattern); | ||
return sdf.format(date); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters