Skip to Content Skip to Menu

Problem with system dates in CIC-Credit Mutuel

  • agaudin
  • agaudin
  • OFFLINE
  • Posts: 82
  • Thanks: 16
  • Karma: 3
3 years 4 weeks ago - 3 years 2 weeks 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) :
Code:
$requestParams['date'] = date( 'd/m/Y:H:m:s', $_CB_framework->now() );

My Autoaction :
Trigger : onAfterUpdateUser and Action with following php code :
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
Last edit: 3 years 2 weeks ago by agaudin.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum