aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/strftime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/time/strftime.c b/time/strftime.c
index d9ed3ffe8c..99bf7f6f12 100644
--- a/time/strftime.c
+++ b/time/strftime.c
@@ -977,8 +977,8 @@ my_strftime (s, maxsize, format, tp ut_argument LOCALE_PARAM)
jump to one of these two labels. */
do_number_spacepad:
- /* Force `_' flag unless overwritten by `0' flag. */
- if (pad != L_('0'))
+ /* Force `_' flag unless overwritten by `0' or '-' flag. */
+ if (pad != L_('0') && pad != L_('-'))
pad = L_('_');
do_number: