Issue Details (XML | Word | Printable)

Key: QRTZNET-127
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Marko Lahma
Reporter: marek chovanec
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Quartz.NET

CronExpression does not handle custom TimeZone correctly in GetTimeAfter in 2.0 build

Created: 01/Oct/08 10:19 AM   Updated: 06/Nov/08 12:13 PM
Component/s: Triggers
Affects Version/s: 1.0 RC 3
Fix Version/s: 1.0

Environment: .Net2


 Description  « Hide
Hi,

I am running QRTZNET on .Net2. I have my own WinTimeZone inherited from TimeZone class.

I noticed when I schedule task with different TimeZone it will either end up in Infinite loop or won't start at all.

There was a simple fix for it in CronExpression class on line 1968.

This is my change:
#if !NET_35
            //return d.ToUniversalTime();
            return timeZone.ToUniversalTime(d);

After that it all runs smoothly.
I have 3 questions:
1. Have not I broke anything else? (I guess not)
2. Do I have to change dateTime.ToUniversalTime() in NthIncludedDayTrigger class as well.
3. What about Calendars? In Java version they already include TimeZones? Any plans for QRTZNET.

4. If there is any work involved in any steps above 1-3 can I help out?

Thanks,
Marek






 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
marek chovanec added a comment - 09/Oct/08 05:36 AM
sorry for creating this Jira. I could not find a Forum before.
I have submitted this to your GoogleGroup.

Marko Lahma added a comment - 09/Oct/08 05:43 AM
This is a valid issue and should be placed in JIRA. Thank you for reporting this!

Marko Lahma added a comment - 06/Nov/08 12:13 PM
Fixed in trunk, calendars have separate issue and won't make it 1.0