def format_time(time_string):
    """ Function to format the time according to Mysql syntax """
    date = time_string.split("T")[0]
    time = time_string.split("T")[1]
    #2008-01-01 00:00:01
    return date+" "+time.split(".")[0]