Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello dacano_1990,
    Use following code to add 6 hours to the current_time(‘mysql’) in wordpress

    $time = current_time( 'mysql', $gmt = 0 );
    $time = date("Y-m-d H:i:s",strtotime($time."+6 hour"));

    Hope this will serve your purpose.
    Thanks.

    Thread Starter dacano_1990

    (@dacano_1990)

    Hi, cedcommerce,

    It worked, I had to adjust it a bit here and there, but it indeed did work.

    Thank you so much for the help !!

    Regards,

    dacano_1990

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add 6 Hours to current_time('mysql')?’ is closed to new replies.