remove usage of obsolete clock option -gmt
Bug #454856 reported by
buzzdee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Coccinella |
Fix Released
|
Low
|
buzzdee |
Bug Description
As poinged out by Sander, the usage of the boolean -gmt option to clock command is obsolete.
https:/
It is used all over the place, and should be removed.
Changed in coccinella: | |
assignee: | nobody → buzzdee (sebastia) |
Changed in coccinella: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
citing: http:// www.tcl. tk/man/ tcl8.5/ TclCmd/ clock.htm
-gmt boolean
If boolean is true, specifies that a time specified to clock add, clock format or clock scan should be processed in UTC. If boolean is false, the processing defaults to the local time zone. This usage is obsolete; the correct current usage is to specify the UTC time zone with “-timezone :UTC” or any of the equivalent ways to specify it.
The -gmt is used in these places:
$ grep -r -e "-gmt" * | grep -v svn Linux/i686/ vfs1.3/ zipvfs. tcl: return [clock scan $dt -gmt 1] Linux/i686/ snack2. 2/snack. tcl: set tmp x[clock format [expr {int($t)}] -format "%M:%S" -gmt 1] Linux/i686/ snack2. 2/snack. tcl: set tmp [clock format [expr {int($t)}] -format "%H:%M:%S" -gmt 1] NetBSD/ i686/vfs1. 3/zipvfs. tcl: return [clock scan $dt -gmt 1] NetBSD/ i686/snack2. 2/snack. tcl: set tmp x[clock format [expr {int($t)}] -format "%M:%S" -gmt 1] NetBSD/ i686/snack2. 2/snack. tcl: set tmp [clock format [expr {int($t)}] -format "%H:%M:%S" -gmt 1] intel/vfs1. 3/zipvfs. tcl: return [clock scan $dt -gmt 1] intel/Snack2. 2/snack. tcl: set tmp x[clock format [expr {int($t)}] -format "%M:%S" -gmt 1] intel/Snack2. 2/snack. tcl: set tmp [clock format [expr {int($t)}] -format "%H:%M:%S" -gmt 1] tablelist/ scripts/ tablelistEdit. tcl:# "-gmt 1" option for the mentry::putClockVal and mentry::getClockVal commands, tablelist/ scripts/ tablelistEdit. tcl: if {[string compare $arg "-gmt"] == 0} { tablelist/ scripts/ tablelistEdit. tcl: if {[string compare $arg0 "-gmt"] != 0} { tablelist/ scripts/ tablelistEdit. tcl: return -code error "bad option \"$arg0\": must be -gmt" tablelist/ scripts/ tablelistEdit. tcl: mwutil: :wrongNumArgs "addDateMentry format separator ?-gmt? ?name?" tablelist/ scripts/ tablelistEdit. tcl: $name-putValueCmd "mentry: :putClockVal %T %W -gmt $useGMT" \ tablelist/ scripts/ tablelistEdit. tcl: $name-getValueCmd "mentry: :getClockVal %W -gmt $useGMT" \ tablelist/ scripts/ tablelistEdit. tcl:# "-gmt 1" option for the mentry::putClockVal and mentry::getClockVal commands, tablelist/ scripts/ tablelistEdit. tcl: if {[string compare $arg "-gmt"] == 0} { tablelist/ scripts/ tablelistEdit. tcl: if {[string compare $arg0 "-gmt"] != 0} { tablelist/ scripts/ tablelistEdit. tcl: return -code error "bad option \"$arg0\": must be -gmt" tablelist/ scripts/ tablelistEdit. tcl: mwutil: :wrongNumArgs "addTimeMentry format separator ?-gmt? ?name?" tablelist/ scripts/ tablelistEdit. tcl: $name-putValueCmd "mentry: :putClockVal %T %W -gmt $useGMT" \ tablelist/ scripts/ tablelistEdit. tcl: $name-getValueCmd "mentry: :getClockVal %W -gmt $useGMT" \ tinyhttpd. tcl: -format "%a, %d %b %Y %H:%M:%S GMT" -gmt 1] tinyhttpd. tcl: -format "%a, %d %b %Y %H:%M:%S GMT" -gmt 1] RosterTree. tcl: set tstr [...
bin/unix/
bin/unix/
bin/unix/
bin/unix/
bin/unix/
bin/unix/
bin/windows/
bin/windows/
bin/windows/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/
contrib/httpex.tcl: -format "%a, %d %b %Y %H:%M:%S GMT" -gmt 1} modTime]} {
contrib/
contrib/
jabber/