This queue is for tickets about the DateTime-BusinessHours CPAN distribution.

Report information
The Basics
Id:
132979
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
r.coley [...] mac.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



MIME-Version: 1.0 (Mac OS X Mail 13.0 \(3645.0.6.2.4\))
X-Spam-Status: No, score=-0.32 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MPART_ALT_DIFF_COUNT=1.112, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
X-Mailer: Apple Mail (2.3645.0.6.2.4)
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2004280000 definitions=main-2007110108
Message-ID: <05A7DBFE-DC33-44B2-BFAA-B56AF2FAC725@mac.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_AC63260D-2121-4A83-8A5A-F69ACCE1F5E6"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -0.32
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 188352400EC for <cpan-bug+datetime-businesshours@hipster.bestpractical.com>; Sat, 11 Jul 2020 09:58:15 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sqvSzqV8bYtb for <cpan-bug+datetime-businesshours@hipster.bestpractical.com>; Sat, 11 Jul 2020 09:58:13 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [147.75.38.233]) by hipster.bestpractical.com (Postfix) with ESMTPS id 905842400D5 for <bug-datetime-businesshours@rt.cpan.org>; Sat, 11 Jul 2020 09:58:13 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 047047C1A5 for <bug-datetime-businesshours@rt.cpan.org>; Sat, 11 Jul 2020 06:58:13 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 919867C1C6 for <bug-datetime-businesshours@rt.cpan.org>; Sat, 11 Jul 2020 06:58:08 -0700 (PDT)
Received: from mr85p00im-ztdg06011901.me.com (mr85p00im-ztdg06011901.me.com [17.58.23.198]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id E0DD87C1B0 for <bug-datetime-businesshours@rt.cpan.org>; Sat, 11 Jul 2020 06:58:07 -0700 (PDT)
Received: from richards-mbp-2.wizplace (cpc88301-woki8-2-0-cust205.6-2.cable.virginm.net [82.2.188.206]) by mr85p00im-ztdg06011901.me.com (Postfix) with ESMTPSA id B4CC3A605E5 for <bug-datetime-businesshours@rt.cpan.org>; Sat, 11 Jul 2020 13:51:38 +0000 (UTC)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i=@mac.com
Delivered-To: cpan-bug+datetime-businesshours@hipster.bestpractical.com
Subject: Bug
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-11_07:2020-07-10,2020-07-11 signatures=0
Return-Path: <r.coley@mac.com>
X-RT-Mail-Extension: datetime-businesshours
X-Original-To: cpan-bug+datetime-businesshours@hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1594475499; bh=nFTsX48kqugv2+iPxi7nJrGEpO0WU3fZ5WLEGRJC3XU=; h=From:Content-Type:Subject:Message-Id:Date:To; b=pKjINnK79jBLptFpxYYyIfwciVAO64TzYh/Pn79YQ3V8Q6OJ479DTeahJGJInJTi5 w3IZkWiQt0VHGHphaYdEUjzNCstv7+KzVgyZVAC1i6VwBOeXcguvI4Lpg+HlBHmlvM Qrz8BulObsWZP2zc8MXs5Dbl9pQGx2EwcP1D132JQZA3kIaQBGuZzGTNIAFna6jFS5 Qw35g1jddn708jyXrvyQbxoVDAJqQ10y6dMXbEgurUt+yAn72cH+lUT+V9G+zPaH3+ S5p3yVSdkeyU2CDQ9JTnK72yqNTO1zFgNFM8wJFlFa/eM0FXGVPl6BFNts6ndIwxYO GW5+D7CV8uZqw==
X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' HTML_70_90 0.1, HTML_NO_HTTP 0.1, SUBJ_1WORD 0.1, MIME_LOWER_CASE 0.05, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTP_SIZE_3000_LESS 0, BODYTEXTP_SIZE_400_LESS 0, BODY_SIZE_10000_PLUS 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, KNOWN_MSGID 0, KNOWN_MTA_TFX 0, NO_CTA_URI_FOUND 0, NO_URI_FOUND 0, NO_URI_HTTPS 0, SPF_PASS 0, SXL_IP_TFX_WM 0, WEBMAIL_SOURCE 0, __APPLE_RCVD 0, __BODY_NO_MAILTO 0, __BODY_TEXT_X4 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __CTYPE_MULTIPART_ALT 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __FUR_RDNS_ME 0, __HAS_ATTACHMENT 0, __HAS_ATTACHMENT1 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTML_TAG_DIV 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MSGID_APPLEMAIL 0, __RDNS_WEBMAIL 0, __SANE_MSGID 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_MAILTO 0, __blackholes.mail-abuse.org_ERROR , __zen.spamhaus.org_ERROR '
X-PMX-Perl: Suspicious Attachment
Date: Sat, 11 Jul 2020 14:51:36 +0100
X-Spam-Level:
X-Greylist: delayed 387 seconds by postgrey-1.34 at xx1.develooper.com; Sat, 11 Jul 2020 06:58:07 PDT
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2019.11.28.70017
To: bug-DateTime-BusinessHours@rt.cpan.org
From: Richard Coley <r.coley@mac.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 332
Content-Type: multipart/mixed; boundary="Apple-Mail=_B9D9CCA6-FC8E-470A-8B2D-1FD554B33C43"
Content-Length: 0
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ascii
Content-Length: 228
Hi
Content-Type: text/x-perl-script; name="date.pl"; x-unix-mode="0644"
Content-Disposition: attachment; filename="date.pl"
Content-Transfer-Encoding: 7bit
Content-Length: 2597

Message body is not shown because sender requested not to inline it.

content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ascii
Content-Length: 217
Content-Type: text/x-perl-script; name="RBusinessHours.pm"; x-unix-mode="0644"
Content-Disposition: attachment; filename="RBusinessHours.pm"
Content-Transfer-Encoding: 7bit
Content-Length: 5732

Message body is not shown because sender requested not to inline it.

content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1962

In trying the following two dates

"08/07/2020 07:00","08/07/2020 20:00”

Version 2.0.3 doesn’t seem to compute the difference correctly depending if I pass worktiming with a lunch break or not.

Similarly, If I pass holidays they are ignored.

I've attached my test code, together with a local fixed version of the module


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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