diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp
index 3030ae2c8b8df4c15a4a8c5b2d29355c8f052c5c..c027aa7bdd5959dab532f8cbe7bc983c3b6f83ce 100644
--- a/indra/llcommon/llstring.cpp
+++ b/indra/llcommon/llstring.cpp
@@ -717,7 +717,7 @@ void LLStringOps::setupDatetimeInfo (bool daylight)
 	datetimeToCodes["day"]		= "%d";		// 31
 	datetimeToCodes["hour24"]	= "%H";		// 14
 	datetimeToCodes["hour"]		= "%H";		// 14
-	datetimeToCodes["hour12"]	= "%l";		// 02
+	datetimeToCodes["hour12"]	= "%I";		// 02
 	datetimeToCodes["min"]		= "%M";		// 59
 	datetimeToCodes["ampm"]		= "%p";		// AM
 	datetimeToCodes["second"]	= "%S";		// 59