Commit 6aa17fc
git-svn: Fix time zone in --localtime
Use numerical form of time zone to replace alphabetic time zone
abbreviation generated by "%Z". "%Z" is not portable and contain
ambiguity for many areas. For example, CST could be "Central
Standard Time" (GMT-0600) and "China Standard Time" (GMT+0800).
Alphabetic time zone abbreviation is meant for human readability,
not for specifying a time zone for machines.
Failed case can be illustrated like this in linux shell:
> echo $TZ
Asia/Taipei
> date +%Z
CST
> env TZ=`date +%Z` date
Mon Dec 19 06:03:04 CST 2011
> date
Mon Dec 19 14:03:04 CST 2011
[ew: fixed bad package reference inside Git::SVN::Log]
Signed-off-by: Wei-Yin Chen (陳威尹) <chen.weiyin@gmail.com>
Acked-by: Eric Wong <normalperson@yhbt.net>1 parent 83cf21f commit 6aa17fc
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2028 | 2028 | | |
2029 | 2029 | | |
2030 | 2030 | | |
| 2031 | + | |
2031 | 2032 | | |
2032 | 2033 | | |
2033 | 2034 | | |
| |||
3286 | 3287 | | |
3287 | 3288 | | |
3288 | 3289 | | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
3289 | 3298 | | |
3290 | 3299 | | |
3291 | 3300 | | |
| |||
3318 | 3327 | | |
3319 | 3328 | | |
3320 | 3329 | | |
3321 | | - | |
3322 | | - | |
| 3330 | + | |
3323 | 3331 | | |
3324 | 3332 | | |
3325 | 3333 | | |
| |||
5993 | 6001 | | |
5994 | 6002 | | |
5995 | 6003 | | |
5996 | | - | |
5997 | 6004 | | |
5998 | 6005 | | |
5999 | 6006 | | |
| |||
6103 | 6110 | | |
6104 | 6111 | | |
6105 | 6112 | | |
6106 | | - | |
6107 | 6113 | | |
6108 | | - | |
6109 | | - | |
6110 | | - | |
| 6114 | + | |
6111 | 6115 | | |
6112 | 6116 | | |
6113 | 6117 | | |
| |||
0 commit comments