projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e893ec
)
tztime: fix argument parsing bug, clarify docs
author
Phil Sutter
<phil@nwl.cc>
Sun, 4 Oct 2009 01:59:47 +0000
(
03:59
+0200)
committer
Phil Sutter
<phil@nwl.cc>
Sun, 4 Oct 2009 02:03:21 +0000
(
04:03
+0200)
doc/variables.xml
patch
|
blob
|
history
src/timeinfo.c
patch
|
blob
|
history
diff --git
a/doc/variables.xml
b/doc/variables.xml
index
3472c78
..
40e9907
100644
(file)
--- a/
doc/variables.xml
+++ b/
doc/variables.xml
@@
-3126,7
+3126,7
@@
<command>
<option>tztime</option>
</command>
- <option>(timezone) (format)</option>
+ <option>(timezone (format))</option>
</term>
<listitem>Local time for specified timezone, see man
strftime to get more information about format. The timezone
diff --git
a/src/timeinfo.c
b/src/timeinfo.c
index
0a88fe8
..
0812d73
100644
(file)
--- a/
src/timeinfo.c
+++ b/
src/timeinfo.c
@@
-46,9
+46,9
@@
void scan_tztime(struct text_object *obj, const char *arg)
switch (nArgs) {
case 2:
- tz = buf1;
- case 1:
fmt = buf2;
+ case 1:
+ tz = buf1;
}
}