Menu

#61 Timesheet module

open
nobody
None
5
2012-11-15
2005-06-27
Anonymous
No

This is my last version of timesheet for dP 2.0
It works using the task log entry.
It adds a feature to freeze hours (prevent updates) by
an admin.
However this does not work from the task log entry form.

Leon (dP user lesc)

Discussion

  • saigopal

    saigopal - 2008-03-03

    Logged In: YES
    user_id=1634501
    Originator: NO

    i am getting error when timesheet add button is clicked - the date
    suppose
    i have entered is Monday, 03 March 2008 then when press add i am getting
    Thursday, 01 January 1970 can anybody help me

     
  • James Gates

    James Gates - 2008-03-07

    Logged In: YES
    user_id=2029989
    Originator: NO

    Hi

    Can anyone help me by telling me where I can get this module please???

    Many Thanks

    James

     
  • James Gates

    James Gates - 2008-03-07

    Logged In: YES
    user_id=2029989
    Originator: NO

    Found it!

     
  • Nobody/Anonymous

    Hi!...maybe I'mm a year later or so...but...I solved the 1970 problem.

    If you modify the file "addedit.php" that comes within the "Timesheet" module folder, it solves the problem. Chenge the line 7 that comes in the original:

    $date = intval( dPgetParam( $_GET, "date", 0 ) );

    replace it with this one:

    $date = dPgetParam( $_GET, 'date', null );

    and you will get the desired "today" date...

    Cheers

    Fran.

    Las Palmas, Canary Islands, Spain

     

Log in to post a comment.