OSDN Git Service

Remove the 'Factory' time zone by not processing the 'factory' file.
authorElliott Hughes <enh@google.com>
Thu, 26 Jul 2012 23:19:46 +0000 (16:19 -0700)
committerElliott Hughes <enh@google.com>
Thu, 26 Jul 2012 23:19:46 +0000 (16:19 -0700)
The factory file (and Factory time zone) was meant as a way to say
"not configured" that would give a clear error when running date(1).
For us it would just look like UTC, so it is of no value.

Bug: 2997381
Change-Id: I1a4b85dce97d1d9370b22ba79e8fe5dafff56541

libc/tools/zoneinfo/generate
libc/zoneinfo/zoneinfo.dat
libc/zoneinfo/zoneinfo.idx

index 2059abd..ab2617f 100755 (executable)
@@ -24,7 +24,7 @@ if not os.path.isdir(bionic_libc_tools_zoneinfo_dir) or not os.path.isdir(bionic
 print 'Found bionic in %s...' % bionic_dir
 
 
-regions = ['africa', 'antarctica', 'asia', 'australasia', 'backward', 'etcetera', 'europe', 'factory', 'northamerica', 'southamerica']
+regions = ['africa', 'antarctica', 'asia', 'australasia', 'backward', 'etcetera', 'europe', 'northamerica', 'southamerica']
 
 
 def current_tzdata_version():
index 7799255..82d6b9c 100644 (file)
Binary files a/libc/zoneinfo/zoneinfo.dat and b/libc/zoneinfo/zoneinfo.dat differ
index 507ae7a..2268706 100644 (file)
Binary files a/libc/zoneinfo/zoneinfo.idx and b/libc/zoneinfo/zoneinfo.idx differ