I have a flow that is scraping hire bike bike availability data and passing the number of bikes available into a table on a MariaDB instance using the mysql node.
The data input is working smoothly, as is the the data export apart from one issue... Somewhere along the line in the an hour is being subtracted from the time.
The database is setup to use UTC as default, and the box that node-red is running on is in BST.
The data is being input with:
"INSERT INTO `hirebike`.`totalbikes` (`Time`, `Bikes` ,`Places` ) VALUES (UTC_TIMESTAMP(), '"+totalbike_variables here...
and this is working.
Using a basic query : SELECT * FROM `hirebike`.`total bikes`
I can query the data in the database using phpmyadmin and the data is correctly displayed in UTC.
ID | Time |BIkes| Places
211 | 2014-06-30 16:54:27|148 |317
I can query it in php and I get the following also in UTC:
211 2014-06-30 16:54:27 148 317
However querying it with the node-red mysql node I get:
{
"UID": 211,
"Time": "2014-06-30T15:54:27.000Z",
"Bikes": 148,
"Places": 317,
}
Any ideas? ideally I just want to get the data as stored back!