summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-04-12 18:00:10 -0600
committerTim Flynn <trflynn89@pm.me>2022-04-15 08:24:20 -0400
commitb2ef7ee53172599e874c24e1efbf61e0ac0f4a40 (patch)
treead6e86f7cd5bd8f88288a0ba7e69b8d5e943c003 /Userland/Libraries/LibC
parent0500d49acb132f57a4bb4e5a8e7b86e9c7d61710 (diff)
downloadserenity-b2ef7ee53172599e874c24e1efbf61e0ac0f4a40.zip
LibC+LibCore: Change a.m./p.m. to AM/PM
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/time.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibC/time.cpp b/Userland/Libraries/LibC/time.cpp
index a2a7b4eee8..ca26880527 100644
--- a/Userland/Libraries/LibC/time.cpp
+++ b/Userland/Libraries/LibC/time.cpp
@@ -270,13 +270,13 @@ size_t strftime(char* destination, size_t max_size, char const* format, const st
builder.append('\n');
break;
case 'p':
- builder.append(tm->tm_hour < 12 ? "a.m." : "p.m.");
+ builder.append(tm->tm_hour < 12 ? "AM" : "PM");
break;
case 'r': {
int display_hour = tm->tm_hour % 12;
if (display_hour == 0)
display_hour = 12;
- builder.appendff("{:02}:{:02}:{:02} {}", display_hour, tm->tm_min, tm->tm_sec, tm->tm_hour < 12 ? "a.m." : "p.m.");
+ builder.appendff("{:02}:{:02}:{:02} {}", display_hour, tm->tm_min, tm->tm_sec, tm->tm_hour < 12 ? "AM" : "PM");
break;
}
case 'R':