Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

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>
Download (untitled) / with headers
text/plain 2.2k
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
Download (untitled) / with headers
text/html 12.8k

Message body is not shown because it is too large.

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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.