Closed AlD closed 6 years ago
Sorry for the slow response. I was on vacation for 2 weeks and then playing catch up with everything.
Unfortunately, I do not have a raspberry pi box to play with, so I have not been able to reproduce this. Would there be any possibility of creating a test account on it that I could log in to and debug? I'm assuming not... but if that is a possibility, let me know.
In the meantime, perhaps you could run the following:
##################### use Data::Dumper; use Date::Manip::Date; use Date::Manip::Delta;
$obj1 = new Date::Manip::Date; $obj1->parse('now'); print Dumper $$obj1{'data'};
$obj2 = new Date::Manip::Delta; $obj2->parse('+1 day'); print Dumper $$obj2{'data'};
$obj1->calc($obj2); print Dumper $$obj1{'data'}; ###############################
and give me the output.
Thanks
I just tested on a RPi 2 (armv6l) with raspbian, and the issue doesn't occur there.
This is the output from your snippet:
$VAR1 = {
'def' => [
0,
0,
0,
0,
0,
0
],
'offset' => [
2,
0,
0
],
'gmt' => [],
'zin' => '',
'in' => 'now',
'tz' => 'europe/berlin',
'f' => {},
'isdst' => 1,
'date' => [
2018,
8,
7,
20,
43,
40
],
'loc' => [],
'abb' => 'CEST',
'set' => 1
};
$VAR1 = {
'mode' => 'standard',
'in' => '+1 day',
'flen' => {},
'type_from' => 'det',
'gotmode' => 1,
'length' => 'unknown',
'type' => 'semi',
'normalized' => 1,
'f' => {},
'delta' => [
0,
0,
0,
1,
0,
0,
0
]
};
$VAR1 = {
'def' => [
0,
0,
0,
0,
0,
0
],
'offset' => [
2,
0,
0
],
'gmt' => [],
'zin' => '',
'in' => 'now',
'tz' => 'europe/berlin',
'f' => {},
'isdst' => 1,
'date' => [
2018,
8,
7,
20,
43,
40
],
'loc' => [],
'abb' => 'CEST',
'set' => 1
};
This is now fixed and will be in the next release due out in a couple weeks.
On a Raspberry Pi 3 using Archlinux ARM I'm getting a date 13 years back for 'now + 1 day':