Skip to content

Instantly share code, notes, and snippets.

@komuro-hiraku
Last active August 29, 2015 14:04
Show Gist options
  • Save komuro-hiraku/bf04b0a92f6b6c28258a to your computer and use it in GitHub Desktop.
Save komuro-hiraku/bf04b0a92f6b6c28258a to your computer and use it in GitHub Desktop.
moment-timezone.js for Parse.com
// snip
/*global define*/
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
// module.exports = factory(require('moment')); // Node
module.exports = factory(require('cloud/moment-with-langs.js')); // modify for Parse.com
} else {
factory(root.moment); // Browser
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment