comparison program/include/rcmail.php @ 15:85a746e95663

slowly working through deprecations/warnings from 8.3
author Charlie Root
date Sat, 20 Sep 2025 12:16:50 -0400
parents 4681f974d28b
children dd5ed6ef69c9
comparison
equal deleted inserted replaced
14:abddb304201f 15:85a746e95663
49 * @var string 49 * @var string
50 */ 50 */
51 public $action = ''; 51 public $action = '';
52 public $comm_path = './'; 52 public $comm_path = './';
53 public $filename = ''; 53 public $filename = '';
54 public $login_error;
54 55
55 private $address_books = array(); 56 private $address_books = array();
56 private $action_map = array(); 57 private $action_map = array();
57 58
58 59
1199 * 1200 *
1200 * @return string Formatted date string 1201 * @return string Formatted date string
1201 */ 1202 */
1202 public function format_date($date, $format = null, $convert = true) 1203 public function format_date($date, $format = null, $convert = true)
1203 { 1204 {
1205 $today = false;
1206
1204 if (is_object($date) && is_a($date, 'DateTime')) { 1207 if (is_object($date) && is_a($date, 'DateTime')) {
1205 $timestamp = $date->format('U'); 1208 $timestamp = $date->format('U');
1206 } 1209 }
1207 else { 1210 else {
1208 if (!empty($date)) { 1211 if (!empty($date)) {