TODO: Figure out what s and u means :)

Jul 2, 2011 at 9:43 AM

Saw this in the code:       

    // Strip a trailing s or u
            // TODO: Figure out what s and u means :)
            if (time.EndsWith("s") || time.EndsWith("u"))
            {
                time = time.Substring(0, time.Length - 1);
            }

which affects this line in Rule.cs

At = Database.ConvertToTimeSpan(arr[7 + arrayOffset]);

The 's' is standard time.  'u' is UTC time.  These will affect the (relative) hour the rule is applied and are important.   You can find a reference here... http://69.36.11.139/tzdb/tz-how-to.html .  I believe the other suffixes such g and z are no longer in use although it wouldn't hurt to test for them.