Until now, I was using the time stamp from my web machine for blog entries which has its timezone still set to that of Japan. I couldn’t find a clean way of changing this from within Pylogger so now I’m setting my “TZ” variable to “Asia/Karachi” in .bash_profile (export TZ=”Asia/Karachi”). Wish I had figured this out earlier.
One thought on “Timezones”
Actually just putting this at the top of any Python script will set the timezone:
os.putenv("TZ","Asia/Karachi")
Comments are closed.