is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#1024 closed bug (fixed)

jDateTime : warnings Undefined offset lors d'un setFromString avec ISO8601_FORMAT

Reported by: swanny Owned by:
Priority: normal Milestone: Jelix 1.0.12
Component: jelix:utils Version: 1.1.2
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


L'utilisation de jDateTime::setFromString(date'c') avec le format ISO 8601 provoque des warnings "undefined offset".

Exemple de code :

$test = new jDateTime();

Provoque les warnings suivants :

[8] Undefined offset: 10 jelix/utils/jDateTime.class.php 237
[8] Undefined offset: 11 jelix/utils/jDateTime.class.php 237
[8] Undefined offset: 9 jelix/utils/jDateTime.class.php 238 

La valeur renvoyée par date('c') : 2009-11-20T16:20:59+01:00 est pourtant une date format iso 8601.

Change History (2)

comment:1 Changed 12 years ago by laurentj

  • Component changed from jelix to jelix:utils
  • Milestone set to Jelix 1.1.5

comment:2 Changed 12 years ago by laurentj

  • Milestone changed from Jelix 1.1.5 to Jelix 1.0.12
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.