瀏覽代碼

Fixed date order to be YYYY/MM/DD

Tony 4 年之前
父節點
當前提交
f7a0047391
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/console/console.cpp

+ 1 - 1
Engine/source/console/console.cpp

@@ -621,7 +621,7 @@ static void _printf(ConsoleLogEntry::Level level, ConsoleLogEntry::Type type, co
    {
       Platform::LocalTime lt;
       Platform::getLocalTime(lt);
-      offset += dSprintf(buffer + offset, sizeof(buffer) - offset, "[%d/%d/%d %02d:%02d:%02d]", lt.monthday, lt.month + 1, lt.year + 1900, lt.hour, lt.min, lt.sec);
+      offset += dSprintf(buffer + offset, sizeof(buffer) - offset, "[%d/%d/%d %02d:%02d:%02d]", lt.year + 1900, lt.month + 1, lt.monthday, lt.hour, lt.min, lt.sec);
    }
 
    if (useTimestamp)