Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #57683, comment 15


Ignore:
Timestamp:
03/08/2023 10:50:57 AM (3 years ago)
Author:
Rarst
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57683, comment 15

    initial v1  
    1111// "optimized" (handled as string, timezone-unaware)
    1212list( $year, $month, $day ) = explode( '-', substr( $post->post_date, 0, 10 ) );
    13 $currentday   = $day . '.' . $month . '.' . substr( $year, 2 );
     13$currentday   = $day . '.' . $month . '.' . substr( $year, -2 );
    1414$currentmonth = $month;
    1515var_dump( $currentday, $currentmonth );