Community Forums

ATutor Support

Patch not working right?


You must be signed-in to post.

AuthorSubject
 
Page: 1
gtilflm
Subject: Patch not working right?Quote this post in your reply
Hello. I have 1.6.2 installed and I just put the newest patch (about time zones) in place.

When I edit settings in the "Test and Surveys" area, the dropdown menu for the months now just has "[ ]" instead of the actual months.

Has this happened for anyone else?

Thanks.
Posted: 2009-04-29 11:13:49
harris

Avatar for harris
Subject: Re: Patch not working right?Quote this post in your reply
Check here:
www.atutor.ca/view/3/17258/1.html

Working on a patch.
Posted: 2009-04-29 11:31:00
cindy

Avatar for cindy
Subject: Re: Patch not working right?Quote this post in your reply
Yes. This has been confirmed as a bug. Patch #0022 has been issued for the fix. Thanks.
Posted: 2009-04-29 11:45:28
gtilflm
Subject: Re: Patch not working right?Quote this post in your reply
Got it. Thanks.

When setting the user offset, how can a student tell what the system time is? In My Start Page > Preferences the current system time is not displayed. but it is displayed in admin when you adjust the sytem time offset.

Thanks for the help.
Posted: 2009-04-29 13:53:46
cindy

Avatar for cindy
Subject: Re: Patch not working right?Quote this post in your reply
A very good suggestion. The system time is added into user preference page. You will see it in next ATutor release. Thanks.
Posted: 2009-04-29 14:19:57
gtilflm
Subject: Re: Patch not working right?Quote this post in your reply
Ok. In the meantime, I've added some code to my /ATutor/users/atutor_settings.inc.php in my installation and it works great. Maybe this could be a patch for others?

---------------------------------
OPEN: /ATutor/users/atutor_settings.inc.php


FIND:

echo '<input type="text" name="time_zone" value="'.$selected_time_zone.'" size="4"/>';


ADD BELOW THAT LINE:
//following line added to display current system time when users are selecting their timezone offset under the "Preferences" tab
echo ' Current System Time is:  <b>' . AT_date(_AT('server_date_format'), '', AT_DATE_MYSQL_DATETIME) . '</b>  (Please add or subtract hours to adjust time displays to match your time zone.)';

--------------------------------------

Hope it helps.
Posted: 2009-04-29 14:46:04
gtilflm
Subject: Re: Patch not working right?Quote this post in your reply
Ok. New problem......

The times selected for releasing content and starting/ending Tests and Surveys don't match up. I keep getting a difference of 3 hrs. even though my time offset seems to be correctly set up.

Is anyone else getting this?
Posted: 2009-04-29 15:00:25
cindy

Avatar for cindy
Subject: Re: Patch not working right?Quote this post in your reply
Umm.. this is confirmed. we are looking into it. Thanks.
Posted: 2009-04-29 15:36:05
cindy

Avatar for cindy
Subject: Re: Patch not working right?Quote this post in your reply
Hi, the 3 hrs difference is because timezone set in "admin preference" plus timezone set in "user preference" is 3 hrs.

When start/end time of a test on "create/edit test" page is set to, for example, 9AM, the according values displayed at "Tests & Surveys" page would be 9AM + timezone.
Posted: 2009-06-15 10:06:02
harris

Avatar for harris
Subject: Re: Patch not working right?Quote this post in your reply
In addition to what Cindy has said, you can also look at "admin preference" timezone as the Server Timezone, which affects the entire system.

"User preference" would be the User Timezone, which the user is at, but is relative to the server time.

So the current timezone = admin timezone + user timezone.

You are right though, this will create confusion because the users don't know what the admin timezone is and the result would appear to be a "bug".

In reply to:
Hi, the 3 hrs difference is because timezone set in "admin preference" plus timezone set in "user preference" is 3 hrs.

When start/end time of a test on "create/edit test" page is set to, for...

Posted: 2009-06-15 10:26:10
gtilflm
Subject: Re: Patch not working right?Quote this post in your reply
Ok. I see what you guys are saying.

Maybe this could be fixed in 1.6.3?

Thanks.
Posted: 2009-06-16 00:16:20
cindy

Avatar for cindy
Subject: Re: Patch not working right?Quote this post in your reply
According to the original goal of timezone, this is how it's supposed to work. There won't be a fix in 1.6.3.
Posted: 2009-06-16 08:38:18
 
Page: 1

You must be signed-in to post.

Related Articles