Creation Date showing the Current date

Viewing 12 posts - 1 through 12 (of 12 total)
#37365

DD
Member

Since the version 2.7.96 of the plugin on the field Creation Date is shown the Current Date. In the version 2.7.95 the Creation Date was the actual creation date of the document. How can I fix this in the current version 2.8.3?

Thanks, Dana

#37376

Jass
Moderator

Provide us the link with the issue.

#37379

DD
Member

Thanks for the answer!

At this link you can see that the documents have the creation date displayed to today, even if one document has the creation date on 01 December and the other one 05 of December (attached image “date-for-documents.jpg”): http://www.alessandro-ditrapani.it/blog/download-manger/

In fact, on the document page you can see the actual creation date (http://www.alessandro-ditrapani.it/blog/download/first-pdf/).
Would need the actual creation date to be displayed in the table and not the current date. These documents were inserted using the latest plugin version 2.8.3

Thanks, Dana

#37386

Jass
Moderator

Provide your admin login information using private reply.

#37399

DD
Member
This reply has been marked as private.
#37400

Jass
Moderator

Try deactivating other plugins and check again.

#37414

DD
Member

Have only the default plugins installed on the url provided, that is just a test website.

It may be a PHP version problem. I tested it and It functions well with 5.2. and 5.5.19. Also tested it with 5.6.13 and 5.5 and it gives the current date instead of the creation date.

#37456

DD
Member

Smartnjazzy hello, do you have a solution for my problem?

In attachment a screenshot where you can see that also the pagination for certain shortcodes has problems. There are 4 pages of documents as you can see in the url, but the buttons are for only 3. The shortcode for generating the table in attachment is [wpdm-all-packages jstable=2 items_per_page=3 categories="rassegna-stampa, eventi"]

#37458

DD
Member

For the jstable=1 the pagination works fine, but by default it sorts the documents by name and I can’t make it to work by creation date. Instead jtable=2 has the pagination wrong as per attachment above.

Can you please send a shortcode where the pagination works and that sorts the documents by creation date from the most recent to the oldest? That would be great!

#37478

DD
Member

Somebody figured out why the shortcode bellow is hiding the last pagination page???

[wpdm-all-packages jstable=2 items_per_page=3 categories="category1"]

#37589

Shahriar
Moderator

Hello, I have fixed pagination issue there. Pagination should work fine now.  Thanks.

#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 12 posts - 1 through 12 (of 12 total)

The topic ‘Creation Date showing the Current date’ is closed to new replies.