PHP DateTime class

PHP Dates with Timezone If you have not already, you will inevitably come across a problem of having to convert dates for user’s timezones. Factor into that daylight savings time and things can get quite messy. As of php 5.2.0, PHP provides a DateTime class to simplify the process of timezones and their offsets. Let’s see how we get the … Continue reading