Repository › Forums › Support › Expiry dates for WooCommerce PRO › Found date bug › Reply To: Found date bug

#19269
Soft79
Keymaster

I can’t reproduce this issue. We’re also on CET. Can you please temporarily add the following snippet to your child theme’s functions.php?


add_filter( 'soft79_wcxd_format_date', function ( $formatted, $date ) {
	SOFT79_WCXD()->log( 'debug', 'Date: ' . $date . ' formatted: ' . $formatted . ' timezone: ' . print_r( wp_timezone(), true ) );
	SOFT79_WCXD()->log( 'debug', 'date_i18n: ' . date_i18n( 'Y-m-d H:i:s', $date ) );
	SOFT79_WCXD()->log( 'debug', 'wp_date: ' . wp_date( 'Y-m-d H:i:s' , $date, wp_timezone() ) );
	return $formatted;
}, 10, 2);

This will log some info to “WooCommerce > Status > Logs” when the date is formatted on the frontend. Can you please send me such a log?