private static void SetEnvironmentVariable(RubyContext /*!*/ context, string /*!*/ name, string value) { context.DomainManager.Platform.SetEnvironmentVariable(name, value); #if !SILVERLIGHT if (name == "TZ") { TimeZone zone; if (RubyTime.TryParseTimeZone(value, out zone)) { RubyTime._CurrentTimeZone = zone; } else { context.ReportWarning(String.Format(CultureInfo.InvariantCulture, "`{0}' is not a valid time zone specification; using the current time zone `{1}'", value, RubyTime._CurrentTimeZone.StandardName )); } } #endif }