Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
taskfreak.com
Pages: [1]
  Print  
Author Topic: Dates all wrong?  (Read 3028 times)
SomeoneNew
Anglefish
*
Posts: 18


« on: August 16, 2006, 07:30:25 PM »

Is it me or dates are all wrong? Specially on time zone...

A task had "Today" as deadline, although there was 3 hours and a half for tomorrow still left...
Also the dates are shown all wrong, and when it says for example "saturday" one might think, damn.. THIS saturday!.. But NO, its a saturday within a month.... So, please fix all this.

For what would someone want a task system if times and dates are all wrong.
Logged
Buddha
Lionfish
***
Posts: 99


« Reply #1 on: August 16, 2006, 07:53:48 PM »

Since yopu asked the question...

I think you have the problem, not the code...meaning your software/hardware is jacked up somehow.
Logged
SomeoneNew
Anglefish
*
Posts: 18


« Reply #2 on: August 17, 2006, 01:06:15 AM »

Sorry to break your heart but no, since I tried on 3 servers already.

Oh, so 2 servers are "jacked up" and so is mine?. Well, I should stop paying them and tell them that their software/hardware is jacked up, In case they dont understand what Im talking about, I'll give them your phone number so you can explain them whats a jacked up server!.


:p

If the task is due Tuesday in a week, it will say "Tuesday"... But what if I'm on Monday?, this is the issue.
I'm on Monday 22nd and I put a task for Tuesday 30th, On Deadline I'll see "Tuesday".. and I'll think "heck, due tomorrow!?"... So I have to edit the task to see the actual date. 



Logged
stan
Administrator
Hammerhead shark
*****
Posts: 1077



WWW
« Reply #3 on: August 17, 2006, 01:50:18 AM »

hmmm yes i noticed that too... the dates are wrong for a couple or a few hours past midnight...
but it never bothered me cause i was working late, and still considered 2am as "today", not "tomorrow".
but i guess i should check it again
Logged
SomeoneNew
Anglefish
*
Posts: 18


« Reply #4 on: August 17, 2006, 12:33:59 PM »

Yes but in this case, theres a week of diference Wink
I put task due to next tuesday, I'm on monday and it says "tuesday"... I'll think its tomorrow...
Logged
stan
Administrator
Hammerhead shark
*****
Posts: 1077



WWW
« Reply #5 on: August 17, 2006, 02:33:25 PM »

ah ha! well you'd finished your work early then! you'd have a week off!!
Logged
lucasinc

Posts: 4


« Reply #6 on: August 17, 2006, 06:15:27 PM »

I think if the task is due tomorrow you'll see tomorrow, if today is it's monday and it says tuesday obviously the task isn't for tomorrow, or it would say tomorrow.

What should that case say? next tuesday? or "tuesday (not tomorrow)"?
Cheesy
Logged
alexej
Anglefish
*
Posts: 24



« Reply #7 on: December 22, 2008, 09:47:59 AM »

I think the problem is that the relative date values (today, tomorrow, etc.) are being set based on UTC, not on the local time zone. I also encounter this problem. The day value changes exactly at 0:00:00 UTC.
Logged

Regards,

--A.
mscroggi
Anglefish
*
Posts: 21


« Reply #8 on: February 25, 2010, 05:02:39 PM »

I only have a local installation of TF so all the UTC and timezone stuff isnt needed..  I am doing some reporting on the tasks comments etc.. but the dates are stored in UTC in the database...   Instead of changing the reporting to adjust the returned timestamp, I decided just to take all the timezone stuff out of the equation.  

It is a relatively simple procedure..  I searched the tree for the gmdate() routine calls and replaced them with date() calls..    gmdate was found in these files:
      
   ./include/classes/tzn_generic.php
   ./include/classes/pkg_project.php
   ./xajax.task.php                
   ./public.php                    
   ./index.php                      
   ./xajax/xajax.inc.php            
   ./print_list.php  

I also set the timezone offset to be zero in config.php -   define('TZN_TZDEFAULT','0');

I also modified all of my existing datestamps in the database to be local times..    (I am GMT -6 hours):
Code:
update frk_itemComment set postDate=date_sub(postDate, interval 6 hour)
update frk_itemComment set lastChangeDate=date_sub(lastChangeDate, interval 6 hour) where DATE(lastChangeDate) > '2009-01-01'

update frk_itemFile set postDate=date_sub(postDate, interval 6 hour)

update frk_itemStatus set statusDate=date_sub(statusDate, interval 6 hour)

update frk_member set lastLoginDate=date_sub(lastLoginDate, interval 6 hour) where DATE(lastLoginDate) > '2009-01-01'
update frk_member set creationDate=date_sub(creationDate, interval 6 hour)
update frk_member set lastChangeDate=date_sub(lastChangeDate, interval 6 hour) where DATE(lastChangeDate) > '2009-01-01'

update frk_projectStatus set statusDate=date_sub(statusDate, interval 6 hour)

Seems to work great..

Hope this helps..
« Last Edit: February 25, 2010, 05:07:10 PM by mscroggi » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Darkz Theme By [S.W.T]