old_contents: from flask import jsonify
  
  from . import app
  from .models import Event
  
  
  @app.route('/events/<type>', methods=['GET'])
  def get_events(type):
      events = Event.query.filter_by(type=type)
  
      events_dict = [{
          'name': x.name,
          'description': x.description,
          'image_url': x.image_url,
          'start_time': x.start_time.isoformat(),
          'end_time': x.end_time.isoformat(),
          'email': x.email,
          'website': x.website,
          'facebook': x.facebook
      } for x in events]
  
      return jsonify({'events': events_dict})
  
new_contents: import pytz
  
  from flask import jsonify
  
  from . import app
  from .models import Event
  
  eastern = pytz.timezone('US/Eastern')
  
  
  @app.route('/events/<type>', methods=['GET'])
  def get_events(type):
      events = Event.query.filter_by(type=type)
  
      events_dict = [{
          'name': x.name,
          'description': x.description,
          'image_url': x.image_url,
          'start_time': eastern.localize(x.start_time).isoformat(),
          'end_time': eastern.localize(x.end_time).isoformat(),
          'email': x.email,
          'website': x.website,
          'facebook': x.facebook
      } for x in events]
  
      return jsonify({'events': events_dict})
  
subject: add timezone to event times