Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format timezone unit test failed #231

Closed
jcruzram opened this issue Mar 25, 2012 · 2 comments
Closed

format timezone unit test failed #231

jcruzram opened this issue Mar 25, 2012 · 2 comments

Comments

@jcruzram
Copy link

info:

Date.prototype.toString = Sat Mar 24 2012 22:45:26 GMT-0600 (Hora estándar central (México))

Date.prototype.toLocaleString = Sat Mar 24 2012 22:45:26 GMT-0600 (Hora estándar central (México))

Date.prototype.getTimezoneOffset = 360

navigator.userAgent = Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11

format timezone 2 passed,2 failed.
33.1 moment().format("z") = It should be something like "PST" (true == null)
AssertionError: moment().format("z") = It should be something like "PST"
at Object.ok (http://momentjs.com/js/tests.js?_=120322_094056:1526:39)
at http://momentjs.com/js/tests.js?_=120322_094056:2485:14
at Object.runTest (http://momentjs.com/js/tests.js?_=120322_094056:1702:9)
at http://momentjs.com/js/tests.js?_=120322_094056:1748:25
at http://momentjs.com/js/tests.js?_=120322_094056:1006:13
at http://momentjs.com/js/tests.js?_=120322_094056:616:13
at http://momentjs.com/js/tests.js?_=120322_094056:627:25
at http://momentjs.com/js/tests.js?_=120322_094056:1008:17
at http://momentjs.com/js/tests.js?_=120322_094056:1589:17
33.2 moment().format("z") = It should be something like "PST" (true == null)
AssertionError: moment().format("z") = It should be something like "PST"
at Object.ok (http://momentjs.com/js/tests.js?_=120322_094056:1526:39)
at http://momentjs.com/js/tests.js?_=120322_094056:2486:14
at Object.runTest (http://momentjs.com/js/tests.js?_=120322_094056:1702:9)
at http://momentjs.com/js/tests.js?_=120322_094056:1748:25
at http://momentjs.com/js/tests.js?_=120322_094056:1006:13
at http://momentjs.com/js/tests.js?_=120322_094056:616:13
at http://momentjs.com/js/tests.js?_=120322_094056:627:25
at http://momentjs.com/js/tests.js?_=120322_094056:1008:17
at http://momentjs.com/js/tests.js?_=120322_094056:1589:17
33.3 -06:00 should be something like "+07:30"
33.4 -0600 should be something like "+0700"

@rockymeza
Copy link
Contributor

This functionality has been deprecated as of #227.

@timrwood
Copy link
Member

Also being tracked in #162.

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants