From: Raphaƫl Barrois Date: Sat, 28 Apr 2012 20:38:08 +0000 (+0200) Subject: Simpler version of previous commit. X-Git-Tag: xorg/1.1.5~8 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=ab9241a27bb39a37b34f30b8bce0d513020a6858;p=platal.git Simpler version of previous commit. Use gmdate instead of DateTime + DateTimeZone. --- diff --git a/modules/payment/money/bplccyberplus.inc.php b/modules/payment/money/bplccyberplus.inc.php index 07e3ec5..344712f 100644 --- a/modules/payment/money/bplccyberplus.inc.php +++ b/modules/payment/money/bplccyberplus.inc.php @@ -68,9 +68,9 @@ class BPLCCyberPlus // Transaction's reference computation. $prefix = ($pay->flags->hasflag('unique')) ? str_pad("",15,"0") : rand_url_id(); $fullref = substr("$prefix-{$pay->id}",-12); // FIXME : check for duplicates - $ts = new DateTime('now', new DateTimeZone('UTC')); - $trans_date = $ts->format("YmdHis"); - $trans_id = $ts->format("His"); // FIXME : check for duplicates + $ts = time(); + $trans_date = gmdate("YmdHis", $ts); + $trans_id = gmdate("His", $ts); // FIXME : check for duplicates // Form's content. $this->urlform = "https://systempay.cyberpluspaiement.com/vads-payment/";