OSDN Git Service

Treat "persist.sys.timezone" as being a Java-format timezone.
authorElliott Hughes <enh@google.com>
Thu, 21 Jul 2016 00:23:54 +0000 (17:23 -0700)
committerElliott Hughes <enh@google.com>
Thu, 21 Jul 2016 00:23:54 +0000 (17:23 -0700)
commit3e3f4a51b8a846ce6ae010795892addf9e428137
tree986bf55557cca5267141c10c4f8087c9e3773a6f
parenta9fbaee593242b3257819c1603cdd157604247e7
Treat "persist.sys.timezone" as being a Java-format timezone.

POSIX and Java disagree about the sign in a timezone string like "GMT+3".
This means that if you set "persist.sys.timezone" to such a string, native
code and Java code disagree about what time it is. Resolve this by
translating to POSIX form for native code.

Bug: http://b/25463955
Change-Id: I7c08c459dd8514348a12ce419edcbfbfe8f6d327
Test: manually tested with setprop and date.
libc/tzcode/localtime.c