[fix] More PHP-8.1 issues
This commit is contained in:
parent
e438d95292
commit
0462c9c6a5
|
@ -170,7 +170,7 @@ switch ($action) {
|
|||
case 'edit':
|
||||
|
||||
$timestamp = mktime(12, 0, 0, $month, $day, $year);
|
||||
$date = strftime($strings['formats_date'], $timestamp);
|
||||
$date = date($strings['formats_date'], $timestamp);
|
||||
$dayNameIndex = $date["wday"];
|
||||
|
||||
/* Retrieve location info */
|
||||
|
|
|
@ -89,7 +89,7 @@ function display_image_repository($database, $image_repository_path) {
|
|||
$size['size'] = round($size['size']/1048576, 2);
|
||||
$stat = stat($image_repository_path ."/". $file_name);
|
||||
$max_size = $po_options_default['volume_max_size'];
|
||||
$stat[9] = strftime($strings['formats_date'], $stat[9]);
|
||||
$stat[9] = date($strings['formats_date'], $stat[9]);
|
||||
|
||||
print "<tr>\n";
|
||||
print emit_td($file_name);
|
||||
|
|
|
@ -225,7 +225,7 @@ function emit_date_html($timestamp, $format, $special = FALSE) {
|
|||
$html_string = "";
|
||||
|
||||
if ($date_format) {
|
||||
$html_string .= strftime($date_format, $timestamp);
|
||||
$html_string .= date($date_format, $timestamp);
|
||||
}
|
||||
|
||||
if ($link)
|
||||
|
@ -237,7 +237,7 @@ function emit_date_html($timestamp, $format, $special = FALSE) {
|
|||
} else {
|
||||
if ($date_format)
|
||||
$html_string .= " @ ";
|
||||
$html_string .= strftime($time_format, $timestamp);
|
||||
$html_string .= date($time_format, $timestamp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ switch ($calendar_view) {
|
|||
|
||||
print sprintf($thm_elem['button.previous'], "my.datebook.php?view=1&year=$yesterday[0]&month=$yesterday[1]&day=$yesterday[2]", $strings['generic_day'], "");
|
||||
|
||||
print "<b> $dayNames[$dayNameIndex] ".strftime($strings['formats_date'], $timestamp)." </b>";
|
||||
print "<b> $dayNames[$dayNameIndex] ".date($strings['formats_date'], $timestamp)." </b>";
|
||||
$tomorrow = adjustDay($calendar_year, $calendar_month, $calendar_day + 1);
|
||||
print sprintf($thm_elem['button.next'], "my.datebook.php?view=1&year=$tomorrow[0]&month=$tomorrow[1]&day=$tomorrow[2]", $strings['generic_day'], "");
|
||||
|
||||
|
|
Loading…
Reference in New Issue