From b29d8e1912aa3b8b356978999ecd5cee056e8ae3 Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Fri, 22 Sep 2023 11:34:09 -0700 Subject: [PATCH] IO-2408 Use bodyshop.timezone instead of UTCOffset in Speedprint --- client/src/utils/RenderTemplate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/utils/RenderTemplate.js b/client/src/utils/RenderTemplate.js index f103111cf..cc58e0b78 100644 --- a/client/src/utils/RenderTemplate.js +++ b/client/src/utils/RenderTemplate.js @@ -1,15 +1,15 @@ import { gql } from "@apollo/client"; -import { notification } from "antd"; import jsreport from "@jsreport/browser-client"; +import { notification } from "antd"; +import axios from "axios"; import _ from "lodash"; import moment from "moment"; import { auth } from "../firebase/firebase.utils"; import { setEmailOptions } from "../redux/email/email.actions"; import { store } from "../redux/store"; import client from "../utils/GraphQLClient"; -import { TemplateList } from "./TemplateConstants"; import cleanAxios from "./CleanAxios"; -import axios from "axios"; +import { TemplateList } from "./TemplateConstants"; const server = process.env.REACT_APP_REPORTS_SERVER_URL; jsreport.serverUrl = server; @@ -255,7 +255,7 @@ export async function RenderTemplates( headerpath: `/${bodyshop.imexshopid}/header.html`, footerpath: `/${bodyshop.imexshopid}/footer.html`, bodyshop: bodyshop, - offset: moment().utcOffset(), + offset: bodyshop.timezone, }, };