Problem with system dates in CIC-Credit Mutuel

4 weeks 1 day ago - 2 weeks 4 days ago #326466 by agaudin
I "reopen" this topic five minutes later, sorry :

I used a Autoaction to check internally how the date is processed :

CbSubs origial code (line 325 in /cbpaidsubscriptions.ciccreditmutuel.php) :
$requestParams['date']				=	date( 'd/m/Y:H:m:s', $_CB_framework->now() );

My Autoaction :
Trigger : onAfterUpdateUser and Action with following php code :
global $_CB_framework;                   
$to ="";
                   $subject = "Essai";
                   $headers = "From: noreply@MYSITE\r\n";
                   $headers .= "Reply-To: noreply@MYSITE\r\n";
                   $message ='Contenu :'.date( 'd/m/Y:H:m:s', $_CB_framework->now() );
                   mail($to, $subject, $message, $headers);

Real time when I edited my personnal profile : 15:36:19
Time received in email : 23/09/2021:15:09:19

If I repeat my test, time is alway 15:09:xx even when minute is changing

So it seems the problem comes from CBsubs - CIC-CME

Thanx by advance for debugging.

Best regards

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.113 seconds

Facebook Twitter LinkedIn