[interchange] Fix timecard_stamp() to support a passed timestamp.
Peter Ajamian <[email protected]> Thu, 21 Jun 2018 15:33:34 +0000
| Newsgroups | gmane.comp.web.interchange.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 33eb533c01307d2be11dc7a948742b5aa7503669 Author: Peter Ajamian <[email protected]> Date: Fri Jun 22 03:28:44 2018 +1200 Fix timecard_stamp() to support a passed timestamp. timecard_stamp() was originally designed and documented to support the ability to pass a timestamp as a second arg, but due to a typo it never has. This commit fixes that issue. lib/Vend/Util.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) --- diff --git a/lib/Vend/Util.pm b/lib/Vend/Util.pm index ba5ca43..5e2c82c 100644 --- a/lib/Vend/Util.pm +++ b/lib/Vend/Util.pm @@ -2447,7 +2447,7 @@ sub timecard_stamp { open(FH, '>>', $filename) or die "Can't open $filename for append: $!"; lockfile(\*FH, 1, 1); binmode FH; - print FH pack('N',time); + print FH pack('N',$timestamp); unlockfile(\*FH); close FH; }