In the forum thread https://community.openenergymonitor.org/t/timestamp-issue-when-importing-csv-exported-data-from-emoncms-org-feeds-list/7863/19 we discussed time stamp formats for the CSV output in the graphs module.
Do we need to amend the available output format?
The output format is defined here https://github.com/emoncms/graph/blob/master/graph.js#L837
I’ve been using “2017-03-14 00:00:00” format for a long time, Im not entirely sure why TBH, perhaps because it contains everything you need in a condensed format?
I usually convert Unix time stamp to this format with:
$datestr = date("Y-m-d H:i:s",time());
luckily php’s strtotime converts a large variety of time formats back to unix time :slight_smile: I dont really have a strong opinion on this either way
In the forum thread https://community.openenergymonitor.org/t/timestamp-issue-when-importing-csv-exported-data-from-emoncms-org-feeds-list/7863/19 we discussed time stamp formats for the CSV output in the graphs module.
Do we need to amend the available output format?
The output format is defined here https://github.com/emoncms/graph/blob/master/graph.js#L837
I’ve been using “2017-03-14 00:00:00” format for a long time, Im not entirely sure why TBH, perhaps because it contains everything you need in a condensed format?
I usually convert Unix time stamp to this format with:
$datestr = date("Y-m-d H:i:s",time());
luckily php’s strtotime converts a large variety of time formats back to unix time :slight_smile: I dont really have a strong opinion on this either way