Problem with system dates in CIC-Credit Mutuel

2 years 7 months ago - 2 years 6 months 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 ="MYADRESSE@orange.fr";
                   $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
Antoine

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.131 seconds

Facebook Twitter LinkedIn