jeremyclark13 / automatic-theme-plugin-update

Self hosted plugin and theme update scripts
http://clark-technet.com/2010/12/wordpress-self-hosted-plugin-update-api
548 stars 147 forks source link

Pass month/day values to mktime() without any leading zeros #35

Closed jefferyto closed 10 years ago

jefferyto commented 10 years ago

date("m") and date("d") includes a leading zero when necessary (e.g. "01"). While I don't think these are causing any problems now, it's probably better to switch to values without the leading zero.