[interchange] Fix timecard_stamp() to support a passed timestamp.

Peter Ajamian interchange-cvs at icdevgroup.org
Thu Jun 21 15:33:34 UTC 2018


commit 33eb533c01307d2be11dc7a948742b5aa7503669
Author: Peter Ajamian <peter at pajamian.dhs.org>
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;
 }



More information about the interchange-cvs mailing list