How can PHP strtotime() be used to generate a timestamp without UTC Offset?

When using PHP strtotime() function to generate a timestamp, it automatically includes the UTC offset based on the server's timezone settings. To generate a timestamp without the UTC offset, you can temporarily set the timezone to UTC before calling strtotime() and then reset it back to the original timezone.

// Save the original timezone
$originalTimezone = date_default_timezone_get();

// Set timezone to UTC
date_default_timezone_set('UTC');

// Generate timestamp without UTC offset
$timestamp = strtotime('now');

// Reset timezone back to the original
date_default_timezone_set($originalTimezone);

// Output the timestamp
echo $timestamp;