c# - Quartz.net setting the timezone for ITrigger? -


itrigger crontrigger = triggerbuilder.create()             .withidentity("trigger1", "group1")             .withcronschedule(0 0/1 * 1/1 * ? *)             .build(); 

this code sets time run hour before want to, rather running @ 1:40 runs @ 12:40. can set timezone of itrigger work uk time ?

there should timezone option when creating trigger. this:

.intimezone(timezone.currenttimezone); 

the above take server's current timezone. if not uk based server, should work.

timezoneinfo.findsystemtimezonebyid("gmt standard time"); 

here link: http://quartz-scheduler.org/documentation/quartz-2.x/tutorials/tutorial-lesson-06


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -