mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-16 07:14:58 +01:00
Fix compile issue with commit timestamp
This commit is contained in:
@@ -229,7 +229,9 @@ public class LunarCore {
|
||||
builder.append(hash);
|
||||
|
||||
long timestamp = buildConfig.getField("COMMIT_TIMESTAMP").getLong(null);
|
||||
builder.append(" (" + sf.format(new Date(timestamp * 1000)) + ")");
|
||||
if (timestamp > 0) {
|
||||
builder.append(" (" + sf.format(new Date(timestamp * 1000)) + ")");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// Ignored
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user