alteração do datetime para Fuso Espanhol date-fns/locale/es
parent
3a7f1a2404
commit
1d190a5dd4
|
@ -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";
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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 = '') => {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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> => {
|
||||
|
|
|
@ -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: "" };
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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 })))
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
|
||||
|
||||
|
||||
import ptBrLocale from "date-fns/locale/pt-BR";
|
||||
import ptBrLocale from "date-fns/locale/es";
|
||||
|
||||
|
||||
function formatDateDatePicker(data){
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue