Development

#2812 (Seconds Support in Admin Generator.)

You must first sign up to be able to contribute.

Ticket #2812 (closed defect: wontfix)

Opened 2 years ago

Last modified 1 month ago

Seconds Support in Admin Generator.

Reported by: abash Assigned to: fabien
Priority: minor Milestone:
Component: generator Version: 1.0.10
Keywords: generator, second, seconds Cc:
Qualification: Unreviewed

Description

In order to support seconds one should specify the table field as TIMESTAMP in schema.yml (xml). Consider a table 't_periods' with column 'dt' of the time TIMESTAMP. Command propel-build-model works fine, as expected. Propel-init admin works also fine. It seems to be a bug inside the 'updateTPeriodsFromRequest' in the autogenerated class:

$value = $dateFormat->format($t_periods['dt'], 'I', $dateFormat->getInputPattern('g'));

should be replaced with

$value = $dateFormat->format($t_periods['dt_finish'], 'I', $dateFormat->getInputPattern('G'));

in order to support seconds.

Change History

02/02/10 13:07:34 changed by FabianLange

  • status changed from new to closed.
  • resolution set to wontfix.

Versions containing the old admin generator are no longer supported. This feature works in the new admin generator (sf 1.2+)

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.