alteração do datetime para Fuso Espanhol date-fns/locale/es

pull/20/head
adriano 2023-09-29 14:10:47 -03:00
parent 3a7f1a2404
commit 1d190a5dd4
26 changed files with 26 additions and 26 deletions

View File

@ -12,7 +12,7 @@ import UserOnlineTime from "../models/UserOnlineTime";
import { Op, Sequelize, literal } from "sequelize";
import format from 'date-fns/format';
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { splitDateTime } from "../helpers/SplitDateTime";
import ListUserOnlineOffline from "../services/UserServices/ListUsersOnlineOfflineService";
import ListUserParamiterService from "../services/UserServices/ListUserParamiterService";

View File

@ -15,7 +15,7 @@ import ListSchedulingNotifyContactService from "../services/SchedulingNotifyServ
import { isScheduling } from "../helpers/CheckSchedulingReminderNotify"
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { splitDateTime } from "../helpers/SplitDateTime";
import format from 'date-fns/format';

View File

@ -10,7 +10,7 @@ import {
subMinutes
} from "date-fns";
import ptBR from "date-fns/locale/pt-BR";
import ptBR from "date-fns/locale/es";
import { splitDateTime } from "./SplitDateTime";
const fsPromises = require("fs/promises");

View File

@ -9,7 +9,7 @@ import { getIO } from "../libs/socket";
import path from "path";
import { splitDateTime } from "./SplitDateTime";
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { number } from "yargs";
const autoRestore = async (whatsappId: string | number, started_action_by: string = '') => {

View File

@ -8,7 +8,7 @@ import ShowWhatsAppService from "../services/WhatsappService/ShowWhatsAppService
import { Client } from "whatsapp-web.js";
import { splitDateTime } from "../helpers/SplitDateTime";
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import dir from 'path';
import { getIO } from "../libs/socket";

View File

@ -1,4 +1,4 @@
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { splitDateTime } from "../helpers/SplitDateTime";
import format from 'date-fns/format';
import ShowUserServiceReport from '../services/UserServices/ShowUserServiceReport';

View File

@ -9,7 +9,7 @@ import { redisConn } from './TicketCache'
import SchedulingNotify from '../models/SchedulingNotify'
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { escapeCharCache } from './ContactsCache'

View File

@ -11,7 +11,7 @@ import { Session } from "@sentry/types";
import { splitDateTime } from "./SplitDateTime";
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import ListWhatsAppsNumber from "../services/WhatsappService/ListWhatsAppsNumber";
const SetTicketMessagesAsRead = async (ticket: Ticket): Promise<void> => {

View File

@ -11,7 +11,7 @@ import {
isSunday,
parseISO
} from "date-fns";
import ptBR from "date-fns/locale/pt-BR";
import ptBR from "date-fns/locale/es";
const isHoliday = async () => {
let obj = { set: false, msg: "" };

View File

@ -8,7 +8,7 @@ import ListUserParamiterService from "../services/UserServices/ListUserParamiter
import createOrUpdateOnlineUserService from "../services/UserServices/CreateOrUpdateOnlineUserService";
import { splitDateTime } from "../helpers/SplitDateTime";
import format from 'date-fns/format';
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import ListUserOnlineOffline from "../services/UserServices/ListUsersOnlineOfflineService";
import { check } from "prettier";
import { addHours, addMinutes, addSeconds, intervalToDuration, add } from "date-fns";

View File

@ -13,7 +13,7 @@ let io: SocketIO;
import createOrUpdateOnlineUserService from "../services/UserServices/CreateOrUpdateOnlineUserService";
import { splitDateTime } from "../helpers/SplitDateTime";
import format from 'date-fns/format';
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import ListUserOnlineOffline from "../services/UserServices/ListUsersOnlineOfflineService";
import { handleMessage, handleMsgAck } from "../services/WbotServices/wbotMessageListener";
import { join } from "path";

View File

@ -9,7 +9,7 @@ import { getIO } from "../../libs/socket";
import ShowUserServiceReport from "../UserServices/ShowUserServiceReport";
import format from 'date-fns/format';
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { splitDateTime } from "../../helpers/SplitDateTime";
import TicketEmiterSumOpenClosedByUser from "../../helpers/OnlineReporEmiterInfoByUser";

View File

@ -4,7 +4,7 @@ import { Op, where } from "sequelize";
import { Sequelize } from "sequelize";
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { splitDateTime } from "../../helpers/SplitDateTime";
const dateToday = splitDateTime(new Date(format(new Date(), 'yyyy-MM-dd HH:mm:ss', { locale: ptBR })))

View File

@ -8,7 +8,7 @@ import { getIO } from "../../libs/socket";
import ShowUserServiceReport from "../UserServices/ShowUserServiceReport";
import format from "date-fns/format";
import ptBR from "date-fns/locale/pt-BR";
import ptBR from "date-fns/locale/es";
import { splitDateTime } from "../../helpers/SplitDateTime";
import TicketEmiterSumOpenClosedByUser from "../../helpers/OnlineReporEmiterInfoByUser";

View File

@ -4,7 +4,7 @@ import { Op, where } from "sequelize";
import { Sequelize } from "sequelize";
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { splitDateTime } from "../../helpers/SplitDateTime";
import Contact from "../../models/Contact";

View File

@ -6,7 +6,7 @@ const { QueryTypes } = require("sequelize");
import { splitDateTime } from "../../helpers/SplitDateTime";
import format from "date-fns/format";
import ptBR from "date-fns/locale/pt-BR";
import ptBR from "date-fns/locale/es";
import BotIsOnQueue from "../../helpers/BotIsOnQueue";
interface Request {

View File

@ -1,6 +1,6 @@
import { Op, fn, where, col, Filterable, Includeable } from "sequelize";
import { startOfDay, endOfDay, parseISO, format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import Ticket from "../../models/Ticket";
import Contact from "../../models/Contact";

View File

@ -4,7 +4,7 @@ import { splitDateTime } from "../../helpers/SplitDateTime";
import { Op, Sequelize } from "sequelize";
import { addHours, addMinutes, addSeconds, intervalToDuration, add } from "date-fns";
import format from 'date-fns/format';
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import { stat } from "fs";
import { getIO } from "../../libs/socket";

View File

@ -17,7 +17,7 @@ import { creationTime } from "../../helpers/CreationTime";
import { splitDateTime } from "../../helpers/SplitDateTime";
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import path from "path";
const fs = require('fs')

View File

@ -22,7 +22,7 @@ import {
isSunday,
parseISO
} from "date-fns";
import ptBR from "date-fns/locale/pt-BR";
import ptBR from "date-fns/locale/es";
import { utcToZonedTime, zonedTimeToUtc } from "date-fns-tz";

View File

@ -22,7 +22,7 @@ import { creationTime } from "../../helpers/CreationTime";
import { splitDateTime } from "../../helpers/SplitDateTime";
import { format } from "date-fns";
import ptBR from 'date-fns/locale/pt-BR';
import ptBR from 'date-fns/locale/es';
import path from "path";
import { restoreMonit } from "../../helpers/RestoreMonit";
const fs = require('fs')

View File

@ -44,7 +44,7 @@ import {
} from '@material-ui/pickers';
import ptBrLocale from "date-fns/locale/pt-BR";
import ptBrLocale from "date-fns/locale/es";
const ResponsiveTimePickers = (props) => {

View File

@ -10,7 +10,7 @@ import { TimePicker, DatePicker } from 'formik-material-ui-pickers'
import DateFnsUtils from '@date-io/date-fns'
import ptBrLocale from "date-fns/locale/pt-BR"
import ptBrLocale from "date-fns/locale/es"

View File

@ -12,7 +12,7 @@ import {
import ptBrLocale from "date-fns/locale/pt-BR";
import ptBrLocale from "date-fns/locale/es";
function formatDateDatePicker(data){

View File

@ -44,7 +44,7 @@ import {
} from '@material-ui/pickers';
import ptBrLocale from "date-fns/locale/pt-BR";
import ptBrLocale from "date-fns/locale/es";
function formatDate(strDate){

View File

@ -14,7 +14,7 @@ import {
// import { i18n } from "../../../translate/i18n";
import ptBrLocale from "date-fns/locale/pt-BR";
import ptBrLocale from "date-fns/locale/es";
function formatDateDatePicker(data){