Presently there seems to be an issue with the displayed local time until being automatically logged out. Please see attached PNG.

Specifically, when I log into my site, the 'time until logout' defaults to a time zone that is one hour behind mine. Thus, my logout time is the same time as I logged in because, for some reason, the difference from GMT is incorrect. I am using the default of 3600 seconds for auto logout. I have adjusted the local time for the site and my user local time to the same city and this seemingly has no effect because when they are different, the same issue is present.

Looking at the log, there are only 2 users online and it seems the time being displayed is based on the user who first logged onto the system. I know this user is in the time zone one hour behind mine. If I am the only user, then the time appears correctly.

Any ideas?

CommentFileSizeAuthor
Picture 4.png12.25 KBgeneatwell

Comments

geneatwell’s picture

Part of the problem seems to be associated with the fact that a person is considered logged in unless s/he specifically logs out. Looking at the log since I activated Automated Logout, if somebody does not log out, they will be considered logged in until the next time they try to log in. The log shows a log out time stamp at the same time the user attempts to log in unless the user remembered to log out at the termination of his last session.

This leads to 2 separate issues:

1. Time zone seems to be applied system wide based on the time zone of the first user logged in regardless of the default time zone set with the Date/Time of Drupal.

2. Logging out does not happen when the window is merely closed and the elapsed time expires, only when another log in is attempted beyond the elapsed time or a user remembers to log out.

jvandervort’s picture

Is the time discrepancy only for the static message (with no javascript or timer module) or only for the moving (Javascript) countdown message?

adam_b’s picture

I'm having the same issue with the time zone display in the static message:
- current time is 09:57 London time (presently British Summer Time, or GMT+1)
- the autologout is set to 300 seconds (5 minutes)
- the display says "You will be automatically logged out at Wed, 19 May 2010 09:01:50 +0000 if this page is not refreshed before then."

So it's one hour behind - the +0000 makes me suspect that it's having time-zone issues.

And just as an extra, is there any way to edit the message and time format?

jvandervort’s picture

Status: Active » Fixed

Nope, Drupal just doesn't know the client's local time. I've just committed a changed to use the interval instead of the time to dev. It should be in the dev snapshot dated on/after May 19.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.