node-red-contrib-questdb 0.6.23 → 0.6.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/nodes/questdb.js +1 -13
  2. package/package.json +1 -1
package/nodes/questdb.js CHANGED
@@ -528,19 +528,7 @@ module.exports = function (RED) {
528
528
  } else if (typeof value === 'boolean') {
529
529
  connection.sender.booleanColumn(key, value);
530
530
  } else if (typeof value === 'string') {
531
- // Check if it's an ISO date string
532
- if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/.test(value)) {
533
- const dateValue = new Date(value);
534
- if (!isNaN(dateValue.getTime())) {
535
- // Convert to microseconds for QuestDB
536
- const microSeconds = BigInt(dateValue.getTime()) * 1000n;
537
- connection.sender.timestampColumn(key, microSeconds);
538
- } else {
539
- connection.sender.stringColumn(key, value);
540
- }
541
- } else {
542
- connection.sender.stringColumn(key, value);
543
- }
531
+ connection.sender.stringColumn(key, value);
544
532
  } else if (value instanceof Date) {
545
533
  // Convert to microseconds for QuestDB
546
534
  const microSeconds = BigInt(value.getTime()) * 1000n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-questdb",
3
- "version": "0.6.23",
3
+ "version": "0.6.24",
4
4
  "description": "Node-RED nodes for writing high-performance time-series data to QuestDB using Influx Line Protocol (ILP). Supports IoT, industrial monitoring, smart buildings, fleet telematics, healthcare, agriculture, and more.",
5
5
  "author": {
6
6
  "name": "Holger Amort"