jarosław piasecki

Forum Replies Created

Viewing 1 post (of 1 total)
in reply to: Creation Date showing the Current date #60436

Hi DD
I found solution for your an my issue also. In my WP I have enabled translations (I don’t use native en language) and there was a problem with i18n. WP function get_the_date() returns translated and in human read format date and then puts the output into PHP function strtotime() and in the end PHP is confused and you get current date.

My simple solution
Go to file:
\wp-content\plugins\download-manager\tpls\wpdm-all-downloads.php
Find code:
<td><?php echo date_i18n( get_option( ‘date_format’ ), strtotime(get_the_date())); ?></td>
Replace code with:
<td><?php echo get_the_date(); ?></td>

Viewing 1 post (of 1 total)