Commit 6e6218e8 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Set moment timezone to Europe/paris

parent 30d65eae
Pipeline #2460 passed with stages
in 3 minutes and 13 seconds
{ {
"name": "service-email", "name": "service-email",
"version": "0.0.0", "version": "1.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
...@@ -6156,6 +6156,14 @@ ...@@ -6156,6 +6156,14 @@
"resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz",
"integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==" "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg=="
}, },
"moment-timezone": {
"version": "0.5.23",
"resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.23.tgz",
"integrity": "sha512-WHFH85DkCfiNMDX5D3X7hpNH3/PUhjTGcD0U1SgfBGZxJ3qUmJh5FdvaFjcClxOvB3rzdfj4oRffbI38jEnC1w==",
"requires": {
"moment": ">= 2.9.0"
}
},
"move-concurrently": { "move-concurrently": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz",
......
...@@ -3,9 +3,10 @@ import * as amqp from 'amqplib'; ...@@ -3,9 +3,10 @@ import * as amqp from 'amqplib';
import { ContactForm, Email, EmailWithoutFrom, FeedbackForm } from './email'; import { ContactForm, Email, EmailWithoutFrom, FeedbackForm } from './email';
import { ConfigService } from '../configuration/config.service'; import { ConfigService } from '../configuration/config.service';
import { buildContactAdminEmail, buildContactUserEmail } from '../email-templates/contact'; import { buildContactAdminEmail, buildContactUserEmail } from '../email-templates/contact';
import moment = require('moment');
import { buildFeedbackEmail } from '../email-templates/feedback'; import { buildFeedbackEmail } from '../email-templates/feedback';
import * as useragent from 'useragent'; import * as useragent from 'useragent';
import moment = require('moment-timezone');
moment.tz.setDefault('Europe/Paris');
@Injectable() @Injectable()
export class EmailService { export class EmailService {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment