Version Timestamp (Copy From or Edit)

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
jkpalmer52
Posts: 78
Joined: 23 Feb 2005, 17:29
Location: US-Chicago area

Version Timestamp (Copy From or Edit)

Post by jkpalmer52 »

Using Mantis 1.1.2

When I copy a version from one project to another, the timestamp shows up on the receiving project as 1905-.....

If I edit the version and clear the timestamp and save it, the timestamp is recorded as 1969-12-31 19:00 EST

Help would be appreciated.

Regards,

-jP
artgroup
Posts: 29
Joined: 02 Jul 2008, 12:35

Re: Version Timestamp (Copy From or Edit)

Post by artgroup »

Hi have the same problem.
Also if i try to copy the version with wrong time stamp to another project I got this error:
APPLICATION ERROR #401

Database query failed. Error received from database was #1048: Column 'date_order' cannot be null for the query: INSERT INTO mantis_project_version_table
( project_id, version, date_order, description, released )
VALUES
( '19', 'ALPHA1', null, '', '1' )

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.
Any idea??
Chris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
artgroup
Posts: 29
Joined: 02 Jul 2008, 12:35

Re: Version Timestamp (Copy From or Edit)

Post by artgroup »

It seems that I fixed the issue modifying this function: version_api.php

Code: Select all

		
if ( null === $p_date_order ) {
  $c_date_order = db_now();
} else {
  $c_date_order = db_timestamp(db_date( $p_date_order ));# Original code: db_timestamp( $p_date_order );
}
My version of mantis is 1.1.2.

With this modification seems to be fixed, but I have the CEST time instead of CET.. I don't know if this make any difference
Chris by ArtGroup

Mantis: 1.1.2
PHP: 5.2.5
SQL: MySQL 5.0.51a
OS: XP SP2
Post Reply