
get_user_timezone() should now be working for users with new-style timezone settings.

get_timezone_record() function added to cache some db queries.

I haven't been able to test this yet, will do later.

dilawar/moodle