1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Migrate away from strftime

This commit is contained in:
Sara Golemon
2021-07-05 14:47:20 +00:00
parent 22f0d88721
commit ae006c3288
4 changed files with 35 additions and 17 deletions

View File

@@ -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));
$days[$i] = date('l', mktime(12, 0, 0, 4, $i));
}
for ($i = 1; $i <= 12; $i++) {
$months[$i] = strftime('%B', mktime(12, 0, 0, $i, 1));
$months[$i] = date('F', mktime(12, 0, 0, $i, 1));
}
// Possibilities to recur