Bug 551826 - wrong date conversion
Summary: wrong date conversion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-applet-jalali-calendar
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Hedayat Vatankhah
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-02 11:06 UTC by Adrin Jalali
Modified: 2010-01-08 19:56 UTC (History)
1 user (show)

Fixed In Version: 1.6.8-3.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-08 19:55:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Calverter.py (10.61 KB, text/plain)
2010-01-03 18:34 UTC, Adrin Jalali
no flags Details
jcalendar.py (9.27 KB, text/plain)
2010-01-03 18:34 UTC, Adrin Jalali
no flags Details

Description Adrin Jalali 2010-01-02 11:06:13 UTC
I'm using gnome-applet-jalali-calendar-1.6.8-2.fc12.noarch.
Today is Sat. 2 jan 2010 and Sat. 12 Dey 1388.
But jalali calendar shows: Sun. 13 Dey 1388.
Best.
Adrin.

Comment 1 Hedayat Vatankhah 2010-01-03 12:25:56 UTC
Yes, you're right. Thanks for the report. I've contacted the author about the problem and I hope that he'll fix it soon. I'll try to look at the code and see if I can fix it myself as I find some free time. For now, you might try starcal instead (not packaged for Fedora though). (Or you might even fix the bug using the algorithm used there and send it for me! :) )

Thanks

Comment 2 Adrin Jalali 2010-01-03 18:32:45 UTC
Aha, that was the point. I could fix it :D
But that was نامردی :P because I did not know python at all ;)

anyway, I'll attach Calverter.py and jcalendar.py. Calverter is written by Mehdi Bayazee. I used it in jcalendar.py. You might clean changed code :D

Thanks :)

Comment 3 Adrin Jalali 2010-01-03 18:34:02 UTC
Created attachment 381409 [details]
Calverter.py

Comment 4 Adrin Jalali 2010-01-03 18:34:54 UTC
Created attachment 381410 [details]
jcalendar.py

Comment 5 Hedayat Vatankhah 2010-01-03 21:49:26 UTC
Well, the life is full of نامردیs! ;) BTW, thank you for the fix. I'll check it ASAP and apply the fix at least until the upstream author fixes the applet (I'll let him know about your patch).

Thanks for your cooperation

Comment 6 Fedora Update System 2010-01-07 20:07:28 UTC
gnome-applet-jalali-calendar-1.6.8-3.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/gnome-applet-jalali-calendar-1.6.8-3.fc12

Comment 7 Fedora Update System 2010-01-07 20:07:33 UTC
gnome-applet-jalali-calendar-1.6.8-3.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/gnome-applet-jalali-calendar-1.6.8-3.fc11

Comment 8 Fedora Update System 2010-01-08 19:55:54 UTC
gnome-applet-jalali-calendar-1.6.8-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-01-08 19:56:36 UTC
gnome-applet-jalali-calendar-1.6.8-3.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.