From 1be43eaa6c5afbcedb36c4fb80e8b8799c75be90 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 4 Oct 2010 21:19:23 +0200 Subject: time plugin: properly reset TZ in on_timezone --- data/rbot/plugins/time.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/rbot/plugins') diff --git a/data/rbot/plugins/time.rb b/data/rbot/plugins/time.rb index efea466f..4838a469 100644 --- a/data/rbot/plugins/time.rb +++ b/data/rbot/plugins/time.rb @@ -181,8 +181,9 @@ class TimePlugin < Plugin def on_timezone(to_zone) original_zone = ENV["TZ"] ENV["TZ"] = to_zone - return yield + ret = yield ENV["TZ"] = original_zone + return ret end end -- cgit v1.2.3