From 3c08ccd2d076ba5b527cf6d0419edd3c6fa8c850 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Sun, 7 Jul 2024 12:41:04 +0300 Subject: [PATCH] Add unix timestamp tool --- src/views/UnixTimestamp.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/UnixTimestamp.vue b/src/views/UnixTimestamp.vue index 75c9896..ced2dad 100644 --- a/src/views/UnixTimestamp.vue +++ b/src/views/UnixTimestamp.vue @@ -88,20 +88,20 @@ export default { this.currentTimestampFormatted = { 'UTC': moment().utc().format('YYYY-MM-DDTHH:mm:ss[Z]'), // 'UTC (local)': moment().format('YYYY-MM-DDTHH:mm:ssZZ'), - 'ISO 8601': moment().toISOString(), + // 'ISO 8601': moment().toISOString(), // 'RFC 2822': moment().format('ddd, DD MMM YYYY HH:mm:ss ZZ'), // 'RFC 850': moment().format('dddd, DD-MMM-YY HH:mm:ss [UTC]'), // 'RFC 1036': moment().format('ddd, DD MMM YY HH:mm:ss ZZ'), // 'RFC 1123': moment().format('ddd, DD MMM YYYY HH:mm:ss ZZ'), // 'RFC 822': moment().format('ddd, DD MMM YY HH:mm:ss ZZ'), // 'RFC 3339': moment().format('YYYY-MM-DDTHH:mm:ssZZ'), - 'COOKIE': moment().format('dddd, DD-MMM-YYYY HH:mm:ss [UTC]'), + // 'COOKIE': moment().format('dddd, DD-MMM-YYYY HH:mm:ss [UTC]'), // 'RSS': moment().format('ddd, DD MMM YYYY HH:mm:ss ZZ'), 'Unix Epoch': moment().unix(), 'YYYY-DD-MM': moment().format('YYYY/MM/DD'), - 'SQL DATETIME': moment().toISOString().replaceAll(/[ZT]/g, ' '), + 'SQL DATETIME': moment().toISOString().replaceAll(/[ZT]|(\.[0-9]{3})/g, ' '), 'YYYY/DD/MM HH:MM:SS AM/PM': moment().format('YYYY/MM/DD HH:mm:ss A'), - 'DD.MM.YYYY HH:MM:SS': moment().format('DD.MM.YYYY HH:mm:ss'), + // 'DD.MM.YYYY HH:MM:SS': moment().format('DD.MM.YYYY HH:mm:ss'), }; }; updateCurrentTimestamp();