projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ed4666
)
emerge-webrsync: fix date usage for BSD
author
Zac Medico
<zmedico@gentoo.org>
Sun, 19 Aug 2012 04:03:11 +0000
(21:03 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 19 Aug 2012 04:03:11 +0000
(21:03 -0700)
bin/emerge-webrsync
patch
|
blob
|
history
diff --git
a/bin/emerge-webrsync
b/bin/emerge-webrsync
index 5cba6b045c464eda9a1cb3dfd60c37be09609044..a962ab548a84a73f5444593e2d1a3db67eb7ee09 100755
(executable)
--- a/
bin/emerge-webrsync
+++ b/
bin/emerge-webrsync
@@
-101,7
+101,9
@@
get_date_part() {
get_utc_second_from_string() {
local s="$1"
if [[ ${USERLAND} == BSD ]] ; then
- date -juf "%Y%m%d" "$s" +"%s"
+ # Specify zeros for the least significant digits, or else those
+ # digits are inherited from the current system clock time.
+ date -juf "%Y%m%d%H%M.%S" "${s}0000.00" +"%s"
else
date -d "${s:0:4}-${s:4:2}-${s:6:2}" -u +"%s"
fi