def timestamp_converter(data_store_type, timestamp):
    """
    Helper function for when testing with data stores that have funky formats for stock dates with SQLAlchemy.
    :param data_store_type: The type of data store
    :param timestamp: The timestamp to be created.
    :return:
    """
    if data_store_type == 'mysql':
        timestamp = timestamp.replace(microsecond=0)
    else:
        timestamp = timestamp
    return timestamp
