Skip Menu |

This queue is for tickets about the RTx-Calendar CPAN distribution.

Report information
The Basics
Id: 123399
Status: new
Priority: 0/
Queue: RTx-Calendar

People
Owner: Nobody in particular
Requestors: contact [...] aset-wings.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: <contact [...] aset-wings.com>
Subject: Bugs in Calendar
Date: Fri, 27 Oct 2017 11:22:12 +1100
To: <bug-RTx-Calendar [...] rt.cpan.org>
From: "ASET Wings" <contact [...] aset-wings.com>
Hi, After more tests I send you the following patch to correct all the bugs I found in Calendar : * Calendar does not change day because of timezone (use GMT) * The link does not work on some dashboards diff -c --recursive /tmp/RTx-Calendar-1.01/html/Elements/MyCalendar /opt/rt4/local/plugins/RTx-Calendar/html/Elements/MyCalendar *** /tmp/RTx-Calendar-1.01/html/Elements/MyCalendar 2015-12-05 08:52:59.000000000 +1100 --- /opt/rt4/local/plugins/RTx-Calendar/html/Elements/MyCalendar 2017-10-27 11:09:55.872659693 +1100 *************** *** 1,6 **** <&|/Widgets/TitleBox, title => loc("Calendar"), ! title_href => "Search/Calendar.html" &> <table class="rtxcalendar"> <thead> --- 1,6 ---- <&|/Widgets/TitleBox, title => loc("Calendar"), ! title_href => RT->Config->Get('WebPath')."/Search/Calendar.html" &> <table class="rtxcalendar"> <thead> *************** *** 47,52 **** --- 47,56 ---- my @DateTypes = qw/Created Starts Started Due LastUpdated Resolved/; my $today = DateTime->today; + # Phi + $today = DateTime->today(time_zone=>'local'); + $RT::Logger->info("********** (MyCalendar) today=[_1]", DateTime->now(time_zone=>'local')); + my $yesterday = $today->clone->subtract( days=>1 ); # this line is used to debug MyCalendar diff -c --recursive /tmp/RTx-Calendar-1.01/html/Search/Calendar.html /opt/rt4/local/plugins/RTx-Calendar/html/Search/Calendar.html *** /tmp/RTx-Calendar-1.01/html/Search/Calendar.html 2015-12-05 08:52:59.000000000 +1100 --- /opt/rt4/local/plugins/RTx-Calendar/html/Search/Calendar.html 2017-10-27 11:09:30.616383550 +1100 *************** *** 204,209 **** --- 204,213 ---- my $endday_of_week = ${$week{$weekstart}}[-1] || 7; my $today = DateTime->today; + # Phi + $today = DateTime->today(time_zone=>'local'); + $RT::Logger->info("********** (Calendar.html) today=[_1]", DateTime->now(time_zone=>'local')); + my $yesterday = $today->clone->subtract( days=>1 ); my $aweekago = $today->clone->subtract( days=>7 ); my $date = RTx::Calendar::FirstDay($Year, $Month + 1, $startday_of_week ); Best Regards. Philippe SCHÄCK Solutions Informatique <mailto:contact@aset-wings.com> contact@aset-wings.com Tel : +687 75.54.75

Message body is not shown because it is too large.

Download image001.png
image/png 13.2k
image001.png