If you file electronically, the date and time in your time zone when your return is transmitted controls whether your return is filed timely.
See https://www.irs.gov/taxtopics/tc301