Use correct date for backdated entries when importing back

This commit is contained in:
Andrey A. Chernov 2007-03-24 20:00:41 +00:00
parent b1d0538273
commit 9ec9242bfe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188204
2 changed files with 20 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= ljpms
PORTVERSION= 1.3
PORTREVISION= 1
CATEGORIES= www perl5 deskutils
MASTER_SITES= http://ljsm.feechki.org/
DISTFILES= ljpms-1_3.zip

View file

@ -0,0 +1,19 @@
--- ljpms.pl.orig Fri Nov 17 17:12:34 2006
+++ ljpms.pl Sat Mar 24 22:53:07 2007
@@ -217,7 +217,6 @@
sub post_event {
my ($entry) = @_;
- my ($year, $month, $day, $hour, $min) = split(/\D+/, my_encode($entry->{'eventtime'}));
my $soap_message = &make_message($entry);
$soap_message->{'props'}->{'opt_backdated'} = 1;
@@ -243,7 +242,7 @@
sub make_message {
my ($entry) = @_;
- my ($year, $month, $day, $hour, $min) = split(/\D+/, ($entry->{'eventtime'} or $entry->{'logtime'}));
+ my ($year, $month, $day, $hour, $min) = split(/\D+/, ($entry->{'logtime'} or $entry->{'eventtime'}));
my $soap_message = {
'ver' => 1,
'lineendings' => "\n",