The city bikes are open every day from 05 am until 01 am.
If you unlock a bike right before midnight, you can use the bike until the end of your rental time. That is until 01:59 am without extended rental, and until 3:59 am with extended rental!
Read more about the rental time here.