Skip to content

Commit

Permalink
feat: add DT transform value for sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Nov 19, 2023
1 parent a6ff6a5 commit c517f41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions models/sql/po/utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const moment = require("moment");

const vrValueTransform = {
"DT": (v) => v ? moment(v, "YYYYMMDDhhmmss.SSSSSSZZ").toISOString(): undefined
};

module.exports.vrValueTransform = vrValueTransform;

0 comments on commit c517f41

Please sign in to comment.