Demo

current_time( ‘mysql’ ) returns local site time: 2024-06-16 02:14:42
current_time( ‘mysql’, 1 ) returns GMT: 2024-06-16 09:14:42
current_time( ‘timestamp’ ) returns local site time: 2024-06-16 02:14:42
current_time( ‘timestamp’, 1 ) returns GMT: 2024-06-16 09:14:42