mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 01:26:59 +08:00
mod: 日志显示精确时间
This commit is contained in:
@@ -52,10 +52,10 @@ class _LogsPageState extends State<LogsPage> {
|
|||||||
if (l.startsWith("Crash occurred on")) {
|
if (l.startsWith("Crash occurred on")) {
|
||||||
try {
|
try {
|
||||||
date = DateTime.parse(
|
date = DateTime.parse(
|
||||||
l.split("Crash occurred on")[1].trim().split('.')[0],
|
l.split("Crash occurred on")[1].trim(),//.split('.')[0],
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
print(e.toString());
|
debugPrint(e.toString());
|
||||||
date = l.toString();
|
date = l.toString();
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user