@nextcloud/moment

@nextcloud/moment

Build Status npm Documentation

Customized moment.js for Nextcloud automatic locale detection.

Installation

npm i -S @nextcloud/moment

Usage

import moment from '@nextcloud/moment'

moment(1578511019).format('L')
// -> returns date formatted in format according to user locale