How to get log2 fold change of RNA-Seq data for time series experiment?
If you just want the change with time then use time as a continuous variable. The log2FC will then be the change per hour (you can use the default Wald test to extract it).

For time-point specific comparisons you'll instead need to treat the time points as groups and use contrasts as appropriate.