PHP parse date with Timezone+Offset using strtotime()

PHP's strtotime("2015-05-11 00:03:24 UTC+1") gives me the unix timestamp 1431302604. But the timestamp should be 1431299004.

Am I wrong? Or how can I correctly parse this date with PHP 5.4.

Answers


Try strtotime("2015-05-11 00:03:24+01:00")


Need Your Help

first/last row of table in smarty template

php smarty

I have a question regarding smarty templates, I'm using PHP and Smarty in order to generate pages. I would like to somehow count or determine first and last row of table. So I can set different CSS...

Get outlook recurrence pattern of a event in iCal format using C#

android icalendar rfc2445 outlook-calendar rfc5545

I am developing a system which extract the outlook calendar data and save it on android device calendar. Up to now all other outlook data are extracted and saved successfully. Now I need to create

How do I replace non-numeric with other non-numeric java

java string replace

I want to replace non numeric characters with other non-numeric characters within a string. For instance in the following, change

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.