mirror of
https://github.com/amalthea-mc/ShopChest.git
synced 2024-11-26 04:12:22 +00:00
Debug timestamp should be in 24h format
This commit is contained in:
parent
5039cef665
commit
d3111a3670
@ -363,7 +363,7 @@ public class ShopChest extends JavaPlugin {
|
|||||||
if (config.enable_debug_log) {
|
if (config.enable_debug_log) {
|
||||||
try {
|
try {
|
||||||
Calendar c = Calendar.getInstance();
|
Calendar c = Calendar.getInstance();
|
||||||
String timestamp = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss").format(c.getTime());
|
String timestamp = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss").format(c.getTime());
|
||||||
fw.write(String.format("[%s] %s\r\n", timestamp, message));
|
fw.write(String.format("[%s] %s\r\n", timestamp, message));
|
||||||
fw.flush();
|
fw.flush();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user