MantisBT - v3.0 Release
View Issue Details
0000933v3.0 Release[All Projects] Generalpublic2011-08-26 05:192013-08-28 11:27
Assigned Tocaseydk 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.0.0 
Summary0000933: The finish date always gets set to 02/01/1970.
DescriptionI am creating a task with the start date as 26-Aug-2011 and the time set to 10 AM.
I set the duration to 6 hours and click on "finish date". The "finish date" field gets set to 02/01/1970 and the time to 06:30 AM.
Additional InformationI have changed all the Time zone information in all the php files to refer to "Asia/Calcutta" instead of "Europe/London". The compare function in date.php has also been changed to avoid an issue with the date/time getting changed to UTC.
TagsNo tags attached.
has duplicate 0000958closed  Pending Requests Incorrect calculation of end date and duration in task edit pahe 
Attached Files

2011-08-26 05:30   
User-Agent:Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101 Firefox/7.0
Server:Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color
2011-08-28 20:25   
Could you check your PHP error log to see if anything is there?

For this release, we incorporate an Ajax-based calculation to perform the calculation on the backend instead of just Javascript on the front end..
2011-08-30 00:09   
I am not seeing any error messages. So I changed ini_set('display_errors', 1); in base.php and tried again.
The World icon keeps rotating and i dont get any output after that. I dont see any error messages anywhere; in the monitor, in the access_log, error_log or the phperrors log file to which error_log is set to in php.ini script.
2011-08-30 00:11   
i am seeing the following in the firefox error console.

Error: invalid regular expression flag b
Source File:
Line: 146, Column: 120
Source Code:
Warning: mktime() expects parameter 1 to be long, string given in D:\xampp\htdocs\actman1\lib\PEAR\Date.php on line 204
2011-09-12 02:54   
Same error in Mozilla as well as Chrome. Very annoying :(
How is it possible to do some debugging (where to look)?
2011-09-12 22:10   
(Last edited: 2011-09-12 22:11)
There is no such problem in 2.3.0 (Demo site is working perfectly).

2011-09-28 06:46   
I think upgrading to the php 5.3 and above will solve this problem.
2011-09-28 08:41   
??, possibly. We have tried to upgrade, but there are many working web apps and some of them (home-made in ancient times) fails with upgrade. So we are not yet migrated.
2011-10-03 20:32   
One, when you hit the duration button no matter what date says in finish the duration defaults to 0 almost like milestone selection but of course not set.
Two, hit finish button, finish will default to 01/01/1970 every time.
Key in two dates it will save into task without calculating duration.
php5.2.5, w2p 2.4 upgraded today and ouch! didn't notice this bug in the trials.
2011-10-21 01:06   
This one is solved in the latest development.. though I'm not sure what patch did it. :(

Issue History
2011-08-26 05:19w2p_userNew Issue
2011-08-26 05:30w2p_userNote Added: 0002163
2011-08-28 20:25caseydkNote Added: 0002167
2011-08-28 20:25caseydkStatusnew => feedback
2011-08-30 00:09w2p_userNote Added: 0002176
2011-08-30 00:11w2p_userNote Added: 0002177
2011-09-11 20:08caseydkRelationship addedhas duplicate 0000958
2011-09-12 02:54baturinNote Added: 0002200
2011-09-12 22:10baturinNote Added: 0002202
2011-09-12 22:11baturinNote Edited: 0002202
2011-09-27 23:18caseydkProjectv2.4 Release (Closed) => v3.0 Release
2011-09-28 06:46w2p_userNote Added: 0002219
2011-09-28 08:41baturinNote Added: 0002221
2011-10-03 20:32lucia8888Note Added: 0002238
2011-10-21 01:06caseydkNote Added: 0002260
2011-10-21 01:06caseydkStatusfeedback => resolved
2011-10-21 01:06caseydkResolutionopen => fixed
2011-10-21 01:06caseydkAssigned To => caseydk
2013-08-28 11:13caseydkFixed in Version => 3.0.0
2013-08-28 11:27caseydkStatusresolved => closed