Dave Burke : Freelance .NET Web Developer specializing in Online Communities

It’s Time for Sueetie Time Zones

Someone in the Sueetie Community correctly pointed out that users could not modify their forum time zone setting since the Sueetie User Profile is used globally and links to the YetAnotherForum.NET User Profile are hidden.  My bad. This is now fixed in Gummy v1.3 with a new Sueetie Time Zone User Profile property.

Because the main purpose of adding a user Time Zone property is to support YetAnotherForum.NET, I naturally patterned it after YetAnotherForum.NET's design. It was interesting to discover that YAF Time Zones are fully localizable and stored in an XML Resource file, so I was able to piggy-back the logic on Sueetie’s new Localization Model.  As a result, adding Time Zone support to Sueetie User Profiles took no time at all.

Below is the new Sueetie Wiki Document on Time Zones with screenshots and a history on how Sueetie Time Zones came about and what we’ll be doing with them.

________________


Time Zones and YetAnotherForum.NET

Time Zones were added to User Profiles in Gummy Bear 1.3 to support the correct DateTime of YetAnotherForum.NET posts. Because the YAF.NET User Profile is not used in Sueetie, it is Sueetie's responsibility to set the correct Time Zone for YetAnotherForum.NET.

Time Zone logic is nearly essential to YAF.NET logic, and the Time Zone value is written to the user's YAF profile in the yaf_user table. This means that it is now required to execute the YAF setup wizard with Gummy Bear. (Installing YAF SQL objects with the setup wizard is required with Gummy 1.3 regardless of the Time Zone, as there are community-wide processes and controls like the User Activity report that make optional installation of the core applications no longer feasible.)

Back to our Time Zone logic. YetAnotherForum.NET stores the time zone data in the language.xml file to support full localization. Mirroring that logic, Sueetie stores timezone data in /util/languages/LANG/timezones.xml.

Time Zone Management Locations

The user can specify his or her time zone when registering or on their user profile. Here is a screenshot of the user profile.

Image

There is also an Administrative ability to change a user's time zone as shown here.

Image

Setting the Community Default Time Zone

The default community time zone can be set on the Administrative General Site Settings form. This will define which time zone users who have not set their time zone will see by default in the time zone selection dropdown.

Image

Comments (0) | Post RSS RSS comment feed

Posted on 5/15/2010 9:07:22 AM by Dave Burke
Categories: Sueetie
Tags: no tags for this item

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke