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

Opened 11 years ago

Closed 11 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:

Description

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

Exemple de code :

$test = new jDateTime();
$test->setFromString(
	date('c'),
	jDateTime::ISO8601_FORMAT
);

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 11 years ago by laurentj

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

comment:2 Changed 11 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.