문제

I am new to Quartz.NET and I am having a hard time creating an event that will fire daily when its 11AM local time in Australia.

I know I have to use the ScheduleJob method but how do I go about adding the time for Australia? I am not very good with UTC/GMT. Any help on this would be greatly appreciated!

Thank you

도움이 되었습니까?

해결책

You might use the ToUniversalTime method ( http://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime(v=vs.100).aspx ) to convert local time to UTC. This isn't straightforward but stops you from fiddling with UTC yourself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top