Closed (fixed)
Project:
Scheduler
Version:
7.x-1.x-dev
Component:
User Interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2014 at 23:04 UTC
Updated:
20 Nov 2014 at 11:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jonathan1055 commentedThis patch has the old and new time values, as this may be useful when others are testing it.
Comment #2
jonathan1055 commentedHere's a screen shot showing the new text.
Comment #3
jonathan1055 commentedHere's a better version which shows the website default timezone. I have added links for the admin to change the site timezone and for the user to alter their own timezone (if that is allowed). New screenshot attached.
I noticed that access to this page is for users who have 'access administration pages' permission. The other tabs are controlled via 'administer scheduler' permission. Just wondering if it would make sense to have these all the same, ie if the user can administer scheduler (but not the full site admin) then they should be allowed to see the timecheck page. It is read-only anyway.
Comment #4
jonathan1055 commentedNew patch with the following improvements:
Comment #5
jonathan1055 commentedForgot to add the interdiff between #3 and #4
Comment #6
jonathan1055 commentedThis enhanced version adds a warning and highlights the User Timezone selection fieldset if the user has not saved their timezone. This will ease the confusion we discovered in #2293653: User timezone displayed but not saved - shows wrong timecheck.

Comment #7
jonathan1055 commentedComment #8
jonathan1055 commentedComment #9
jonathan1055 commentedExisting patch no longer applied due to recent commits. Re-rolled against 7.x-1.2+18
Comment #10
pfrenssenJust had a quick look. I think it's not the responsibility of the Scheduler module to "fix" the user profile form. This should be addressed in core. We are not the only module that needs timezone information, imagine if all modules that rely on the user's timezone would add their own messages and reshuffle the order of hook_form_alter() :)
Do you have a way of detecting whether the timezone was saved or not in the timecheck page? Maybe we can add the warning there, then we stay in our own realm.
Comment #11
jonathan1055 commentedYes, you are right - altering the user profile page is one step too far.
I already detect if the users timezone is not saved, and add a note to the Timecheck page (see point 2 in #4 above). Here's a patch without the user form changes.
Comment #12
jonathan1055 commentedComment #14
pfrenssenLooks good, I made some small tweaks to the strings, and replaced the link to the GMT site with a link to a google search showing the time inline, since the site looked a bit spammy.
Committed to 7.x-1.x, thanks!
Comment #15
jonathan1055 commentedThanks for the interdiff, very helpful. Good spot with the check_plain(), and yes adding a google search is more future-proof than linking to a specific site.