﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses	prnumber
28636	Add functions for working with local dates and times	mboynes	SergeyBiryukov	"Since WordPress sets `date_default_timezone_set( 'UTC' )`, working with local dates and times can sometimes be a bit of a nuisance. I'd like to propose adding a couple of functions to replace at least `date()` and `strtotime()`. We can add replacements for others too, like `mktime()` if the interest is there.

I've put together two proposals for accomplishing this, one using `date_default_timezone_set()` to temporarily change the timezone, and another (far more complicated version) using `DateTime`/`DateTimeZone`. I think the former is preferable, unless anyone has any reasons, performance or otherwise, why resetting the default timezone might be a bad thing?

I'm not married to the function names I chose (`wp_date()` and `wp_strtotime()`), so if it would be preferable to name them e.g. `wp_local_date()` and `wp_local_strtotime()`, I'm open to it."	enhancement	closed	normal	5.3	Date/Time	2.9	normal	fixed	has-patch commit dev-reviewed has-unit-tests			
