getTimestamp(); } /** * Format a UTC epoch (as stored in start_ts/end_ts) as a "Y-m-d" date * in the WordPress site's configured timezone, for redisplay in the * edit form. * * @param int $epoch * @return string */ public static function toDateString(int $epoch): string { return (new DateTimeImmutable('@' . $epoch))->setTimezone(ABJ_404_Solution_SiteTimezone::resolve())->format('Y-m-d'); } }