The goal of this patch is to remove the "percentage" setting from autotimezone, and to instead have the module detect whether timezone data needs to be sent.

The javascript now detects whether the user's timezone needs to be updated. Now the timezone data is only sent if the timezone offset detected by the javascript does not match the user's timezone setting in Drupal. If the session variable for anonymous users is turned on, the effect is the same -- it is only updated if the javascript detects a different timezone setting.

Furthermore, if the session variable for anonymous users is turned off, and the user is anonymous, the javascript isn't even added to the page.

CommentFileSizeAuthor
remove_percentages_4.7.patch3.09 KBSage-1

Comments

moshe weitzman’s picture

I haven't tested yet but this makes a lot of sense.

LukeLast’s picture

Status: Needs review » Fixed

Great work, this module is looking pretty good now.

Anonymous’s picture

Status: Fixed » Closed (fixed)