开发者

Why the Android Emulator doesn't get the timezone from the OS automatically?

开发者 https://www.devze.com 2023-01-13 15:14 出处:网络
Just wondering if, while launching the Android emulator via Eclipse, am I supposed to add the \"-timezone \" parameters to each Eclipse \"Run\" task I create?

Just wondering if, while launching the Android emulator via Eclipse, am I supposed to add the "-timezone " parameters to each Eclipse "Run" task I create?

Is it a bug or a开发者_开发问答 feature that the emulator doesn't get from the OS (Windows 7 in my case) what timezone I'm in?

As a side/alternate question, is there a way to configure in Eclipse 3.5.2, that whenever I create an "Android" Run task, that the "-timezone" parameter is automatically added for me?

Its a minor annoyance to manually add the timezone parameter myself each time, but its kind of rubbing me the wrong way, that something that I would think should be so simple to do (poll the OS for the timezone the emulator is running under) isn't being done, or to just be able to tell Eclipse one time my timezone argument string, instead of having to do it over and over again.

Thanks in advance for any info/advice/answers.

EDIT: Got the answer (thanks Gary!) for how to set the timezone parameter once and have it inherted by any newly created Eclipse run configuration, but I was still wondering if anyone knew why the emulator doesn't just grab it from the OS on startup, instead of just defaulting to GMT?


It's a bug. There's an open issue about it being tracked here.

0

精彩评论

暂无评论...
验证码 换一张
取 消