mirror of
https://codeberg.org/scip/note.git
synced 2025-12-16 20:21:04 +01:00
fixed bug in NOTEDB::pwsafe3 backend, it converted the date
of a note entry into the wrong formatted timestamp.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
4
README
@@ -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
|
||||
|
||||
2
bin/note
2
bin/note
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user