Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

New_York time-zone not supported in default capabilities for Selenium/Saucelabs? #1287

Closed
mattysan opened this issue Sep 4, 2014 · 6 comments

Comments

@mattysan
Copy link

mattysan commented Sep 4, 2014

I don't know if this is an issue on the protractor side or the SauceLabs side, but I'm trying to change the time zone of a SauceLabs VM using defaultCapabilities in the protractor config file to EST (New_York):

exports.config.multiCapabilities = [_.assign({}, defaultCapabilities, {
"time-zone": "New_York",
"browserName": "firefox",
"version": "30"
}), _.assign({}, defaultCapabilities, {
"time-zone": "New_York",
"browserName": "chrome",
"version": "35",
"platform": "OS X 10.9"
})];

I receive an error that it is an unsupported time zone. When I pass in Chicago or Detroit, it works as expected. When I pass in New_York, it says it is unsupported. Thoughts?

@juliemr
Copy link
Member

juliemr commented Sep 4, 2014

This seems to occur for any timezone with an underscore in the name, e.g. Dar_es_Salaam. Underscores seem to work correctly in other parts of the config (e.g. in the capabilities.name) so I assume it's something on SauceLabs side. I reported an issue with them.

Workaround: 'time-zone': 'Eastern'

@mattysan
Copy link
Author

mattysan commented Sep 5, 2014

Actually, Eastern gets accepted but doesn't seem to change the time zone to EST. Looks like the VM remains in the default UTC. I've tried Detroit (works), Chicago (works with expected time difference failures), and London (works w/ expected time diffs). So right now my workaround is Detroit...

@juliemr
Copy link
Member

juliemr commented Sep 5, 2014

Workaround #2 - use New York with a space. I confirmed with SL that this is an issue on their end.

@juliemr
Copy link
Member

juliemr commented Sep 23, 2014

I'm closing this since the issue has been brought up with sauce labs and isn't specific to protractor at all.

@juliemr juliemr closed this as completed Sep 23, 2014
@valeria20
Copy link

valeria20 commented Jun 29, 2017

Hi! Could you help me. How to set local/custom time zone for protractor test?
'timeZone': 'London' in capability doesn't work.

@wswebcreation
Copy link
Contributor

@valeria20

You are reacting on a closed issue. I don't think this is smart. Secondly your question is better suited for StackOverflow or Gitter. Please ask a question there with the 'protractor' tag or post in the Gitter Channel to get help.

From the the getting help section of the README:

Please ask usage and debugging questions on StackOverflow
(use the "protractor" tag) or in the Angular discussion group. (Please do not ask support questions here on Github.)

Thanks!

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

No branches or pull requests

4 participants