Added t-zone check to cal_by_periods

This is a fix for Issue #14 as discussed here:

It takes the timezone from the user's session, or UTC if no value is set in the session.