summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Roobol <sander@php.net>2002-03-09 11:23:48 +0000
committerSander Roobol <sander@php.net>2002-03-09 11:23:48 +0000
commita4e52893350e9a1e4401caf27d5806ed0abc1ea3 (patch)
treed03f68682fa74fa30a9c0bce7d8d0687f64ebed4
parent494d2d0d5a0f63ebd106954755611e3f38ca770b (diff)
downloadphp-git-a4e52893350e9a1e4401caf27d5806ed0abc1ea3.tar.gz
Oops... 1 digit is allowed too! Reverting my fix.
-rw-r--r--ext/standard/datetime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c
index 6a63a6ca40..d7fc392dcd 100644
--- a/ext/standard/datetime.c
+++ b/ext/standard/datetime.c
@@ -496,7 +496,7 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm)
break;
case 'r':
#if HAVE_TM_GMTOFF
- sprintf(tmp_buff, "%3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d",
+ sprintf(tmp_buff, "%3s, %2d %3s %04d %02d:%02d:%02d %c%02d%02d",
day_short_names[ta->tm_wday],
ta->tm_mday,
mon_short_names[ta->tm_mon],
@@ -509,7 +509,7 @@ php_date(INTERNAL_FUNCTION_PARAMETERS, int gm)
abs( ta->tm_gmtoff % 3600)
);
#else
- sprintf(tmp_buff, "%3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d",
+ sprintf(tmp_buff, "%3s, %2d %3s %04d %02d:%02d:%02d %c%02d%02d",
day_short_names[ta->tm_wday],
ta->tm_mday,
mon_short_names[ta->tm_mon],