Actions
Anomalie #687
ferméClass DateTime
Début:
23/04/2010
Echéance:
% réalisé:
100%
Temps estimé:
Version source:
Solution proposée:
Principaux fichiers impactés:
Class.UserToken.php
Complexité:
Contrôle:
Thème:
Régression:
Description
La class DateTime n'est pas toujours présente notamment sur php 5.1
Dans la méthode setExpiration() remplacer
$today = new DateTime();
$expireDate = clone $today;
$expireDate->modify("+".$expiration." seconds");
$this->expire = $expireDate->format(DATE_RFC3339);
$this->expire=strftime("%Y-%m-%d %H:%M:%S",time()+$expiration);
Actions
#1
Mis à jour par Marc Claverie il y a presque 16 ans
- Version cible changé de 2.12 à 2.12.15
Actions
#2
Mis à jour par Jérôme Augé il y a plus de 15 ans
Correction sur branche 2.14 :
commit c60cefc8ad1eecbfb1c3a8178b5db8b046e75965
Author: Jérôme Augé <jerome.auge@anakeen.com>
Date: Mon Jun 28 14:14:05 2010 +0200
Do not use DateTime() as it's not available in PHP < 5.2.0 (closes #687)
Actions
#3
Mis à jour par Jérôme Augé il y a plus de 15 ans
Correction sur branche 2.12 :
commit 0e5645fee29faa444445803231ff0b989e1094c1
Author: Jérôme Augé <jerome.auge@anakeen.com>
Date: Mon Jun 28 14:20:54 2010 +0200
Do not use DateTime() as it's not available in PHP < 5.2.0 (closes #687)
Actions
#5
Mis à jour par Jérôme Augé il y a plus de 15 ans
- Statut changé de Assigné à Résolu
Appliqué par commit commit:"0e5645fee29faa444445803231ff0b989e1094c1".
Actions