fixed bug in NOTEDB::pwsafe3 backend, it converted the date

of a note entry into the wrong formatted timestamp.
This commit is contained in:
git@daemon.de
2013-06-17 12:24:56 +02:00
parent bc776e88bf
commit 469b6901e0
5 changed files with 11 additions and 6 deletions

View File

@@ -1,3 +1,7 @@
1.3.15:
fixed bug in NOTEDB::pwsafe3 backend, it converted the date
of a note entry into the wrong formatted timestamp.
================================================================================
1.3.14:
fixed bug in NOTEDB::pwsafe3 backend, it used lockging on the
database file for reading, which is wrong.

View File

@@ -10,7 +10,7 @@ package NOTEDB;
use Exporter ();
use vars qw(@ISA @EXPORT $crypt_supported);
$NOTEDB::VERSION = "1.36";
$NOTEDB::VERSION = "1.37";
BEGIN {
# make sure, it works, otherwise encryption

View File

@@ -3,7 +3,7 @@
package NOTEDB::pwsafe3;
$NOTEDB::pwsafe3::VERSION = "1.02";
$NOTEDB::pwsafe3::VERSION = "1.03";
use strict;
use Data::Dumper;
@@ -355,7 +355,8 @@ sub _pwsafe3tonote {
#
# convert pwsafe3 record to note record
my ($this, $record) = @_;
my $date = scalar localtime($record->{lastmod});
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($record->{lastmod});
my $date = sprintf("%02d.%02d.%04d %02d:%02d:%02d", $mday, $mon+1, $year+1900, $hour, $min, $sec);
chomp $date;
my $note;
if ($record->{group}) {

4
README
View File

@@ -1,4 +1,4 @@
note 1.3.13 by Thomas Linden, 14/11/2012
note 1.3.15 by Thomas Linden, 20/06/2013
=======================================
Introduction
@@ -214,4 +214,4 @@ and I'll add you.
Last changed
============
14/11/2012
20/06/2013

View File

@@ -144,7 +144,7 @@ $CONF = File::Spec->catfile($ENV{HOME}, ".noterc");
$USER = getlogin || getpwuid($<);
chomp $USER;
$TOPIC = 1;
$version = "1.3.14";
$version = "1.3.15";
$CurDepth = 1; # the current depth inside the topic "directory" structure...
$maxlen = "auto";
$timelen = 22;