Pages (terms/tos/privacy), comments improvements, etc
This commit is contained in:
parent
cd16f45d8e
commit
952431d296
34 changed files with 435 additions and 97 deletions
|
|
@ -14,6 +14,7 @@ const firesCommonSchema = {
|
|||
|
||||
owner: { type: String, optional: true },
|
||||
dateformat: { type: String, optional: true },
|
||||
ourversion: { type: String, optional: true },
|
||||
|
||||
// NASA types
|
||||
address: { type: String, optional: true }, // reverse geo
|
||||
|
|
|
|||
6
imports/api/Common/dates.js
Normal file
6
imports/api/Common/dates.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import moment from 'moment-timezone';
|
||||
|
||||
export const momentTz = date => moment.tz(date, moment.tz.guess());
|
||||
export const dateLongFormat = date => momentTz(date).format('LLLL (z)');
|
||||
export const dateParseShortFormat = date => moment(date, 'YYYY-MM-DD').format('LL');
|
||||
export const dateFromNow = date => momentTz(date).fromNow();
|
||||
Loading…
Add table
Add a link
Reference in a new issue