Author Topic: [1.7 beta-1] Task due dates not displaying properly  (Read 3288 times)

lucasb

  • Newbie
  • *
  • Posts: 4
    • View Profile
[1.7 beta-1] Task due dates not displaying properly
« on: March 31, 2010, 04:05:27 pm »
When a user creates a new task and sets a due date, the date displays incorrectly in the task list view.  It seems all tasks are displayed with the date in GMT, irrespective of the current user's time zone.

In our test environment, we are running in GMT+12.  When we enter a task with a due date of July 1, 2010, in the list view, it shows as being due on June 30.  However, when you view the task details, the date is displayed correctly.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: [1.7 beta-1] Task due dates not displaying properly
« Reply #1 on: April 01, 2010, 10:57:09 am »
Hi,

You can fix it by editing file 'public/assets/javascript/og/tasks/main.js', around line 90, change from:

Code: [Select]
if (tdata.dd) this.dueDate = tdata.dd - tdata.tz; else this.dueDate = null;
if (tdata.sd) this.startDate = tdata.sd - tdata.tz; else this.startDate = null;

to:

Code: [Select]
if (tdata.dd) this.dueDate = tdata.dd; else this.dueDate = null;
if (tdata.sd) this.startDate = tdata.sd; else this.startDate = null;

and then minify javascript if necessary and refresh the browser

iutz

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [1.7 beta-1] Task due dates not displaying properly
« Reply #2 on: June 04, 2010, 09:12:47 am »
Thank you, this solved the problem also in 1.6.2