aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2007-03-25 04:00:41 +0800
committerache <ache@FreeBSD.org>2007-03-25 04:00:41 +0800
commit715e94f93093d893b5c3e725e083f2726b25c35a (patch)
treeba58bd14535847c133f5c9f03059368f79ef0eef /www
parentf9e2ac72e908af9c4dfcd168609f3427dd55e435 (diff)
downloadfreebsd-ports-gnome-715e94f93093d893b5c3e725e083f2726b25c35a.tar.gz
freebsd-ports-gnome-715e94f93093d893b5c3e725e083f2726b25c35a.tar.zst
freebsd-ports-gnome-715e94f93093d893b5c3e725e083f2726b25c35a.zip
Use correct date for backdated entries when importing back
Diffstat (limited to 'www')
-rw-r--r--www/ljpms/Makefile1
-rw-r--r--www/ljpms/files/patch-ljpms.pl19
2 files changed, 20 insertions, 0 deletions
diff --git a/www/ljpms/Makefile b/www/ljpms/Makefile
index 3b0479bc6940..8738a3c566d9 100644
--- a/www/ljpms/Makefile
+++ b/www/ljpms/Makefile
@@ -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
diff --git a/www/ljpms/files/patch-ljpms.pl b/www/ljpms/files/patch-ljpms.pl
new file mode 100644
index 000000000000..4f8c03b08e7e
--- /dev/null
+++ b/www/ljpms/files/patch-ljpms.pl
@@ -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",