php - Converting and Comparing Date -


I have a problem that when I give a date of strtotime The value that is not equal is what I have in the database

Example:

In the database I have this value

< p> 1398308880

which is equal to this date

24/04/2014

So what I did Is $ date = date ('24 / 04/2014 '); $ Date = strotom ($ date);

Who gives me

1398297600

I do not understand, the difference between the two Why should they have the same value right while they? What's wrong here

Consider the following:

  $ time = '1398308880' ; Echo date ("Y-M-DH: I: S", $ time); // Output 2014-04-23 22:08:00 Echo '& lt; Br / & gt; '; Echo amtimes (22, 8, 0, 4, 24, 2014); // output 1398395280   

The timestamp is still different when you eat for hours, minutes and seconds. I am in the Chicago timezone, at what time are you in the field? Or more importantly, is your database running in the same timezilla as your PHP server?

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -