Scotty was pretty drunk and hardly keeping track of time. And the "one bloody day" thing is an expression, it may or may not be accurate in any way.
Don't forget, when the Enterprise departs its still in the early hours of the day, Kirk phones Scotty in the middle of the night, they return to Earth in what could be the late afternoon.
More like 36 hours.
Plus "advanced warp capability". Done.