Skip to content

Commit

Permalink
fix(condo): DOMA-11049 add localeDate() in paid works (#5755)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolmachev21 authored Feb 7, 2025
1 parent 90d5238 commit 0e6915d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const Big = require('big.js')
const dayjs = require('dayjs')
const localizedFormat = require('dayjs/plugin/localizedFormat')
const { get } = require('lodash')
dayjs.extend(localizedFormat)

const { FinanceInfoClient } = require('@open-condo/clients/finance-info-client/FinanceInfoClient')
const { getLogger } = require('@open-condo/keystone/logging')
Expand Down Expand Up @@ -150,7 +152,7 @@ const generateTicketDocumentOfPaidWorks = async ({ task, baseAttrs, context, loc

const documentTextData = {
header: {
generalDate: dayjs().tz(timeZone).format(dayjs().localeData().longDateFormat('L')),
generalDate: dayjs().tz(timeZone).format(dayjs().format('L')),
},
company: {
name: get(organization, 'name'),
Expand Down

0 comments on commit 0e6915d

Please sign in to comment.