Commit cc4a3468 authored by mercury233's avatar mercury233

fix moment updateLocale

parent 39277ed2
......@@ -27,7 +27,7 @@ or as follows, to use a specific set of permissions.
fs = require 'fs'
loadJSON = require('load-json-file').sync
moment = require 'moment'
moment.locale('zh-cn', {
moment.updateLocale('zh-cn', {
relativeTime: {
future: '%s内',
past: '%s前',
......
......@@ -36,7 +36,7 @@ or as follows, to use a specific set of permissions.
moment = require('moment');
moment.locale('zh-cn', {
moment.updateLocale('zh-cn', {
relativeTime: {
future: '%s内',
past: '%s前',
......
......@@ -22,7 +22,7 @@ bunyan = require 'bunyan'
log = bunyan.createLogger name: "mycard"
moment = require 'moment'
moment.locale('zh-cn', {
moment.updateLocale('zh-cn', {
relativeTime: {
future: '%s内',
past: '%s前',
......
......@@ -40,7 +40,7 @@
moment = require('moment');
moment.locale('zh-cn', {
moment.updateLocale('zh-cn', {
relativeTime: {
future: '%s内',
past: '%s前',
......
Markdown is supported
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