WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #49120, comment 2


Ignore:
Timestamp:
01/03/2020 11:44:24 AM (2 years ago)
Author:
autotutorial
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #49120, comment 2

    initial v1  
    55{{{#!php
    66<?php
     7//Bad old function with offset
    78$date = '2020-02-01 00:00';
    89//plugin
     
    1617//WordPress core #maybe
    1718date_default_timezone_set('UTC');
    18 //ini_set( 'date.timezone', 'UTC');
    1919$timestamp[] = strtotime( $date );
    2020var_dump( $timestamp );