ncb000gt/node-cron — pull request #118 by sitegui (2014-10-12 02:50:54+00:00)
Title: Updated _getNextDateFrom to handle an edge case of DST

Hi,

The `_getNextDateFrom` function entered an infinite loop and it's probably linked to DST.

If you set your system locale to America/Sao_Paulo (UTC-03:00 Brasília) and run the following:
```javascript
var ct = new cron.CronTime('0 0 12 11,26 * *')
console.log(ct._getNextDateFrom(new Date))
```
It will hang forever...

With this patch it correctly prints `Sun Oct 26 2014 12:00:00 GMT-0200 (Horário brasileiro de verão)`

This seems to happen because the DST handling code isn't called in the [`dayOfMonth` check](https://github.com/ncb000gt/node-cron/blob/master/lib/cron.js#L131).

As a side note, here in Brazil, the DST in 2014 will begin at October 18 and the `while(1)` got stuck looping from "Sat Oct 18 2014 00:00:00 GMT-0300 (Hora oficial do Brasil)" to "Sat Oct 18 2014 23:00:00 GMT-0300 (Hora oficial do Brasil)" and back.

Regards,
Gui