Skip to content

Instantly share code, notes, and snippets.

@chris-peng-1244
Created August 1, 2018 05:40
Show Gist options
  • Select an option

  • Save chris-peng-1244/f535ad6f7dc30ae6094139f20d701c59 to your computer and use it in GitHub Desktop.

Select an option

Save chris-peng-1244/f535ad6f7dc30ae6094139f20d701c59 to your computer and use it in GitHub Desktop.
import moment from 'moment-timezone';
console.log(moment().tz('Asia/Shanghai').format('YYYY-MM-DD HH:mm:ss'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment