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 12 years ago

Last modified 8 years ago

#619 confirmed enhancement

jdatetime should be replaced by Datetime

Reported by: laurentj Owned by:
Priority: high Milestone: Jelix 2.0.0
Component: jelix:utils Version:
Severity: normal Keywords: datetime
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

PHP 5.2 provides a new objet DateTime?, which have the same purpose of jDatetime. So It should replace jDatetime.

Change History (7)

comment:1 Changed 12 years ago by laurentj

Perhaps we could keep jDatetime which then could be a wrapper for DateTime?... -> compatibility with old versions of jelix.

comment:2 Changed 12 years ago by bballizlife

As DateTime? is provided by default with php5.2 and as Jelix needs at least php5.2, is there really a need to keep jDateTime ?

comment:3 Changed 12 years ago by laurentj

Yes because I think DateTime? doesn't format localized datetime according to the current lang. We should verify that.

comment:4 Changed 11 years ago by foxmask

it seems that DateTime? uses timezone and no localized behavior. as jDateTime uses strptime ...

comment:5 Changed 10 years ago by laurentj

  • Milestone changed from Jelix 1.2 to Jelix 2.0
  • Version 1.0.4 deleted

I think we could remove jDateTime in PHP 5.3. since in jelix 2.0 we could break the API, let's target this ticket for jelix 2.0

comment:6 Changed 10 years ago by laurentj

  • Keywords datetime added

comment:7 Changed 8 years ago by laurentj

  • Status changed from new to confirmed
Note: See TracTickets for help on using tickets.