Created
October 21, 2025 16:12
-
-
Save neiesc/54a407a6d9469102f330a30b2ba17531 to your computer and use it in GitHub Desktop.
moment.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #https://github.com/moment/moment/pull/4391 | |
| moment=./build/umd/moment.js | |
| for tz in Asia/Kathmandu America/Sao_Paulo Europe/London; do | |
| echo $tz; | |
| TZ=$tz node -e "$(cat << EOF | |
| var moment = require('${moment}'); | |
| var m = moment(); | |
| console.log(m.toISOString()); | |
| console.log(m.toISOString(true)); | |
| EOF | |
| )" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment