#255 Time not displaying when in GMT mode on some screens

v2.5rc 3
open
Mindblender
5
2008-05-30
2007-01-17
Mark Casey
No

The Date time on Projects Tasks etc was not reporting correctly when in GMT mode. (PHP 5)

PHP log shows
PHP Warning: mktime() expects parameter 3 to be long, string given in VOL1:/Datafile/apache2/htdocs/phpcollab/includes/library.php on line 1011

Discussion

  • Mark Casey
    Mark Casey
    2007-01-17

    Logged In: YES
    user_id=1693986
    Originator: YES

    Fix Found

    In includes/library.php

    Replace

    return date("Y-m-d H:i", mktime($extractHour + $gmtUser,$extractMinute,0,$extractMonth,$extractDay,$extractYear));

    with

    //MOD - GMT DATE
    return date("Y-m-d H:i", mktime($extractHour + $gmtUser,$extractMinute,0,$extractMonth,$extractDay,$extractYear));
    //END MOD

    and all works

     
  • Mindblender
    Mindblender
    2008-05-30

    • assigned_to: nobody --> mindblender