diff --git a/lib/modules/Sql.pmod/mysql.pike b/lib/modules/Sql.pmod/mysql.pike
index ca104d80c35808cae381b8ac325ea84b2c29eff7..54ee5e07c34a78a8cde894379815db4185b291ff 100644
--- a/lib/modules/Sql.pmod/mysql.pike
+++ b/lib/modules/Sql.pmod/mysql.pike
@@ -537,7 +537,7 @@ string utf8_encode_query (string q, function(string:string) encode_fn)
 // handles time in this local timezone. They map the special zero
 // time/date spec to 0.
 
-private constant timezone = localtime (0)->timezone;
+private int timezone = localtime (0)->timezone;
 
 //! Converts a system time value to an appropriately formatted time
 //! spec for the database.