summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-28 11:27:31 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-28 20:19:05 +0000
commit9c80430eea071be981e793fd5949c22f708b2cf6 (patch)
treed03abcaa3de09ea3366f80333a21132ec0f4a6f3 /Userland/Libraries/LibCore
parent5ca1c54c27dcf7517cb7d5774f7674cfc52ad8c1 (diff)
downloadserenity-9c80430eea071be981e793fd5949c22f708b2cf6.zip
LibCore: Remove time zone from default format string
The default format string is used in many applications/services like FileManager/FileSystemAccessServer. Showing the time zone in e.g. the last modified time for every file in FileManager is feeling a bit over the top, so let's revert this change and assume the user is smart enough to know what time zone they are in.
Diffstat (limited to 'Userland/Libraries/LibCore')
-rw-r--r--Userland/Libraries/LibCore/DateTime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCore/DateTime.h b/Userland/Libraries/LibCore/DateTime.h
index 628dd7e343..30ac5227af 100644
--- a/Userland/Libraries/LibCore/DateTime.h
+++ b/Userland/Libraries/LibCore/DateTime.h
@@ -30,7 +30,7 @@ public:
bool is_leap_year() const;
void set_time(int year, int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0);
- String to_string(const String& format = "%Y-%m-%d %H:%M:%S %Z") const;
+ String to_string(const String& format = "%Y-%m-%d %H:%M:%S") const;
static DateTime create(int year, int month = 1, int day = 1, int hour = 0, int minute = 0, int second = 0);
static DateTime now();