Standard time was not enacted into US law until the 1918 Standard Time Act established standard time in time zones; the law also instituted daylight saving time (DST). The daylight saving time portion of the law was repealed in 1919 over a presidential veto, but was reestablished nationally during World War II. In 2007 the US enacted a federal law formalizing the use of Coordinated Universal Time as the basis of standard time, and the role of the Secretary of Commerce (effectively, the National Institute of Standards and Technology) and the Secretary of the Navy (effectively, the U.S. Naval Observatory) in interpreting standard time.