sdepold/sequelize — pull request #164 by andyburke (2012-05-02 08:01:56+00:00)
Title: Add support for setting the timezone and emit connect/disconnect events

Hey, so this turned into a much bigger change than I expected. But the changes are:

- Sequelize object emit connect/disconnect events
- ConnectorManager object emit connect/disconnect events (Sequelize listens for an passes these on)
- Allow for setting a 'utcoffset' in the options in the format +/-hh:mm
- Set the TZ per-connection
- Test setting the timezone

The tests all pass, but it doesn't exit at the end. I am not sure where we might be hanging.

One issue that came up in this change is that connect is not synchronous anymore. I believe I made all the necessary changes to handle that, but it's worth a second look.