Definition of midnight oil in US English:

midnight oil

noun

figurative
  • Laborious or extra effort, as in studying late at night; usually in "to burn (etc.) the midnight oil": to sit up or work (as by lamplight) late into the night, to work diligently or conscientiously.

Origin

Mid 17th century; earliest use found in Francis Quarles (1592–1644), poet.