Make graph aware of custom midnight