Skip to content

Commit

Permalink
feat: disable creation date tracking in qr code
Browse files Browse the repository at this point in the history
  • Loading branch information
gjgd committed Nov 2, 2020
1 parent 874c594 commit 7defcc0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/js/pdf-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ const ys = {
}

export async function generatePdf (profile, reasons, pdfBase) {
const creationInstant = new Date()
const creationDate = creationInstant.toLocaleDateString('fr-FR')
const creationHour = creationInstant
.toLocaleTimeString('fr-FR', { hour: '2-digit', minute: '2-digit' })
.replace(':', 'h')

const {
lastname,
firstname,
Expand All @@ -32,6 +26,11 @@ export async function generatePdf (profile, reasons, pdfBase) {
heuresortie,
} = profile

// Disable creation date "tracking"
// const creationInstant = new Date()
const creationDate = datesortie
const creationHour = heuresortie.replace(':', 'h')

const data = [
`Cree le: ${creationDate} a ${creationHour}`,
`Nom: ${lastname}`,
Expand Down

0 comments on commit 7defcc0

Please sign in to comment.