| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * WP Reset |
| 5 | 5 | * https://wpreset.com/ |
| 6 | - * (c) WebFactory Ltd, 2017-2021 | |
| 6 | + * (c) WebFactory Ltd, 2017-2023 | |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | // include only file |
| @@ -232,9 +232,9 @@ | ||
| 232 | 232 | $tmp['name'] = $ss['name']; |
| 233 | 233 | } else { |
| 234 | 234 | $tmp['name'] = 'n/a'; |
| 235 | 235 | } |
| 236 | - $tmp['created'] = date(get_option('date_format'), strtotime($ss['timestamp'])) . ' @ ' . date(get_option('time_format'), strtotime($ss['timestamp'])); | |
| 236 | + $tmp['created'] = gmdate(get_option('date_format'), strtotime($ss['timestamp'])) . ' @ ' . gmdate(get_option('time_format'), strtotime($ss['timestamp'])); | |
| 237 | 237 | $tmp['info'] = $ss['tbl_core'] . ' standard & '; |
| 238 | 238 | if ($ss['tbl_custom']) { |
| 239 | 239 | $tmp['info'] .= $ss['tbl_custom'] . ' custom table' . ($ss['tbl_custom'] == 1 ? '' : 's'); |
| 240 | 240 | } else { |
| @@ -239,9 +239,9 @@ | ||
| 239 | 239 | $tmp['info'] .= $ss['tbl_custom'] . ' custom table' . ($ss['tbl_custom'] == 1 ? '' : 's'); |
| 240 | 240 | } else { |
| 241 | 241 | $tmp['info'] .= 'no custom tables'; |
| 242 | 242 | } |
| 243 | - $tmp['info'] .= ' totaling ' . $wp_reset->format_size($ss['tbl_size']) . ' in ' . number_format($ss['tbl_rows']) . ' rows'; | |
| 243 | + $tmp['info'] .= ' totaling ' . WP_Reset_Utility::format_size($ss['tbl_size']) . ' in ' . number_format($ss['tbl_rows']) . ' rows'; | |
| 244 | 244 | |
| 245 | 245 | $table[] = $tmp; |
| 246 | 246 | } // foreach |
| 247 | 247 | WP_CLI\Utils\format_items('table', $table, array('id', 'name', 'created', 'info')); |