Creation Date showing the Current date

in Download Manager Free

Viewing 12 posts - 1 through 12 (of 12 total)
Dec 12, 2015 at 4:20 pm
#37365
Member
DD
OP

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

Dec 13, 2015 at 10:28 am
#37376
Spectator
Jass

Provide us the link with the issue.

Dec 13, 2015 at 2:34 pm
#37379
Member
DD
OP

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

Dec 14, 2015 at 5:42 am
#37386
Spectator
Jass

Provide your admin login information using private reply.

Dec 14, 2015 at 9:37 am
#37399
Member
DD
OP
This reply has been marked as private.
Dec 14, 2015 at 10:19 am
#37400
Spectator
Jass

Try deactivating other plugins and check again.

Dec 14, 2015 at 7:58 pm
#37414
Member
DD
OP

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.

Dec 15, 2015 at 7:02 pm
#37456
Member
DD
OP

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"]

Dec 15, 2015 at 7:14 pm
#37458
Member
DD
OP

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!

Dec 16, 2015 at 5:21 pm
#37478
Member
DD
OP

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

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

Dec 19, 2015 at 3:00 pm
#37589
Moderator
Shahriar
Staff

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

Jul 13, 2017 at 6:30 pm
#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.