Don't convert to gmtime.
Use ajax to fetch data and plot a graph