Skip to content

Commit

Permalink
Merge pull request #2 from tago-io/dayjs
Browse files Browse the repository at this point in the history
moment replaced by dayjs
  • Loading branch information
felipefdl authored Dec 14, 2020
2 parents 7e9bb9b + 87a1054 commit b254c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

const { Analysis, Device, Services, Utils } = require("@tago-io/sdk");
const axios = require("axios");
const moment = require("moment-timezone");
const dayjs = require("dayjs");

const your_variable = "your_variable"; //enter the variable from your device you would like in the report

Expand Down Expand Up @@ -68,7 +68,7 @@ async function myAnalysis(context) {
<body>
<table>
<tr>
<td colspan="7">Issue date: ${moment().format("YYYY-MM-DD HH:mm:ss")}</td>
<td colspan="7">Issue date: ${dayjs().format("YYYY-MM-DD HH:mm:ss")}</td>
</tr>
<tr>
<td colspan="4">Start date: 2020-05-20 10:21:32</td>
Expand Down

0 comments on commit b254c67

Please sign in to comment.