I am trying to use FLOT chart to plot values that i have stored in PostgreSQL. One of the axes will have timestamps. The format that i have stored it the database is: 2013-11-01 00:05:57 (year-month-day hour:minute:second).
I tried the following code to convert this format to UNIX:
$postgresql_timestamp= 2013-11-01 00:05:57; $unix_timestamp= strtotime($postgresql_timestamp);
the result that o get is 1383260757 wich corresponds to another date: 2013-10-01 23:05:5
I think that the problem that i am having is related with the timestamp format on pstgresql. Do you have any advice in order to get a good result?
Thanks