com web/php: Though it doesn't make much of a difference, really, we don't need to specify 2001 as the year.: submit-event.php
| From: | Daniel P. Brown | Date: | Tue, 01 Oct 2013 19:09:37 +0000 |
| Subject: | com web/php: Though it doesn't make much of a difference, really, we don't need to specify 2001 as the year.: submit-event.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-16759@lists.php.net to get a copy of this message | ||
Commit: ccbfdb71e13c0e563fdea16dc7c8ba5e3ac2a1fb
Author: danbrown <danbrown@php.net> Tue, 1 Oct 2013 15:09:37 -0400
Parents: 37d7deea6b534f8043cb7303c0e0d54b7d12bb7a
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ccbfdb71e13c0e563fdea16dc7c8ba5e3ac2a1fb
Log:
Though it doesn't make much of a difference, really, we don't need to specify 2001 as the
year.
Changed paths:
M submit-event.php
Diff:
diff --git a/submit-event.php b/submit-event.php
index 05b2b2b..b87ec9c 100644
--- a/submit-event.php
+++ b/submit-event.php
@@ -152,10 +152,10 @@ if (count($errors)) { display_errors($errors); }
// Generate days and months arrays for form
for ($i = 1; $i <= 7; $i++) {
- $days[$i] = strftime('%A', mktime(12, 0, 0, 4, $i, 2001));
+ $days[$i] = strftime('%A', mktime(12, 0, 0, 4, $i));
}
for ($i = 1; $i <= 12; $i++) {
- $months[$i] = strftime('%B', mktime(12, 0, 0, $i, 1, 2001));
+ $months[$i] = strftime('%B', mktime(12, 0, 0, $i, 1));
}
// Possibilities to recur