Page 1 of 1

Version Timestamp (Copy From or Edit)

Posted: 05 Aug 2008, 14:54
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

Re: Version Timestamp (Copy From or Edit)

Posted: 22 Sep 2008, 15:07
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??

Re: Version Timestamp (Copy From or Edit)

Posted: 22 Sep 2008, 22:50
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