View Issue Details

IDProjectCategoryView StatusLast Update
0009307mantisbtotherpublic2008-10-09 13:18
Reportermgstm Assigned Togiallu  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.1 
Summary0009307: Copy Version from produce incorrect timestamp
Description

If I try to copy versions from another Project, the timestamps are set to a wrong Value.

Steps To Reproduce

1) Select manage project
2) Select a project to copy version from
3) Klick "copy versions from"
4) look at the timestamps of the copied Versions

Additional Information

Looking at the source shows that the function version_add(...) needs the Parameter
$p_date_order in DB usable Format.

version_get_all_rows(...) returns the timestamp in unix-format and it is directly passed to version_add(...).

So my suggestion is
change in manage_proj_ver_copy.php line 54

version_add( $t_dst_project_id, $t_row['version'], $t_row['released'], $t_row['description'], $t_row['date_order'] );

to

version_add( $t_dst_project_id, $t_row['version'], $t_row['released'], $t_row['description'], db_date($t_row['date_order']) );

TagsNo tags attached.

Relationships

duplicate of 0008880 closedgiallu Problem with date formatting in db_prepare_date function 
related to 0009651 closedjreese Version copy from parent project copies incorrect date 

Activities

giallu

giallu

2008-07-01 11:34

reporter   ~0018261

I think this is a duplicate of 0008880 and fixed in 1.1.2.

Feel free to reopen if that is not the case