Tag Archives: datetime

Django – creating timezone aware datetime objects

After developing some codes for few hours, when I finally tried to test it, I am greeted with this timezone related error. After reviewing Django docs, it is clearly stated that it has full support for timezones and that it … Continue reading

Posted in Python | Tagged , , | Leave a comment

PHP – Setting and Getting Timestamp from DateTime Object below PHP 5.3.x

So we solved the timezone problem using PHP’s timezone aware DateTime class right? And you love working on UNIX timestamp/UTC but as to your surprise, you cannot set or get timestamp to a DateTime object on version below PHP 5.3.x. … Continue reading

Posted in php | Tagged , , , | Leave a comment

Yet Another World Clock

I finally completed my so called “World Clock”. The idea was to be able to create a widget to display a clock for different timezones. I used the combination of JavaScript and PHP to achieve the accurate date/time conversion especially … Continue reading

Posted in JavaScript, Web Development | Tagged , , , , , , | 1 Comment