Control how datetime offsets are handled

Use the woocommerce_bookings_importer_timestamp_mode filter to choose how imported datetime offsets should be interpreted. The default mode, preserve_wall_clock, keeps the same clock reading from the CSV regardless of timezone differences. The snippet below switches that default to preserve_instant, which shifts the imported value to the destination site’s local equivalent of the same absolute moment.

add_filter(
	'woocommerce_bookings_importer_timestamp_mode',
	function ( string $mode ): string {
		if ( 'preserve_wall_clock' === $mode ) {
			return 'preserve_instant';
		}

		return $mode;
	}
);
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.