Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Date field display one day less

$
0
0

Replies: 0

Hello

I have got two date type fields in my database and when I get them thru a request like this :

$record = Participants_Db::get_participant_list( $config );

These two date fields contain a date with 1 day less that what as been inserted when creating the record.

I need to add the following code to get the right display :

$realdate = date ( ‘d/m/Y’, $record[$idadherent]->certificatmedical + ( 24 * 60 * 60 ) );

I can’t access to my WP database to see what’s really stored in the database, so I don’t understand why these dates are uncorrect when coming out of the get_participant_list query.


Viewing all articles
Browse latest Browse all 59525

Trending Articles