From amdmi3@amdmi3.ru  Wed Mar 18 16:17:01 2009
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4E4E01065675
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Mar 2009 16:17:01 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from smtp.timeweb.ru (smtp.timeweb.ru [217.170.79.85])
	by mx1.freebsd.org (Postfix) with ESMTP id 0B1EF8FC18
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Mar 2009 16:17:01 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by smtp.timeweb.ru with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.69)
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1LjyRy-0002FV-Vu
	for FreeBSD-gnats-submit@freebsd.org; Wed, 18 Mar 2009 19:17:03 +0300
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id 0354AA062
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Mar 2009 19:16:30 +0300 (MSK)
Received: by hades.panopticon (Postfix, from userid 1000)
	id 2A6D3108839; Wed, 18 Mar 2009 19:15:59 +0300 (MSK)
Message-Id: <20090318161559.2A6D3108839@hades.panopticon>
Date: Wed, 18 Mar 2009 19:15:59 +0300 (MSK)
From: Dmitry Marakasov <amdmi3@FreeBSD.org>
Reply-To: Dmitry Marakasov <amdmi3@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: calendar utility processes SunLast (and likely similar) dates incorrectly
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         132779
>Category:       bin
>Synopsis:       calendar(1) utility processes SunLast (and likely similar) dates incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 18 16:20:04 UTC 2009
>Closed-Date:    Mon Mar 01 01:04:28 UTC 2010
>Last-Modified:  Mon Mar 01 01:04:28 UTC 2010
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Tue Feb 10 23:56:47 MSK 2009 root@hades.panopticon:/usr/obj/usr/src/sys/HADES i386

(the same problem exists on 7.0-RELEASE)

>Description:
calendar utility processes date shortcuts like SunLast, SunFirst incorrectly.

>How-To-Repeat:
If I create ~/.calendar/calendar with the following two lines:

03/SunFirst	test1
03/SunLast	test2

these obviously are supposed to be shown on first and last sunday of a March, respectively.

However:

% calendar -A 10 -B 10
Mar 17* test2
Mar 17* test1
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Mon Mar 1 01:03:48 UTC 2010 
State-Changed-Why:  
Fixed in the upcoming calendar upgrade 


Responsible-Changed-From-To: freebsd-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Mar 1 01:03:48 UTC 2010 
Responsible-Changed-Why:  
I will keep track of this if needed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132779 
>Unformatted:
