mirror of
https://github.com/anope/anope.git
synced 2026-07-05 07:13:13 +02:00
Fix some minor bugs with setting the user timezone.
This commit is contained in:
@@ -105,6 +105,8 @@ public:
|
||||
}
|
||||
|
||||
usertz = timezone;
|
||||
if (usertz.equals_ci(param))
|
||||
break; // Exact match.
|
||||
}
|
||||
|
||||
if (usertz.empty())
|
||||
|
||||
@@ -634,6 +634,7 @@ Anope::string Anope::strftime(time_t t, const NickCore *nc, bool short_output)
|
||||
if (nc)
|
||||
{
|
||||
unsetenv("TZ");
|
||||
tzset();
|
||||
Language::ResetLocale();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user