Options (ALT+O) > IRC > Logging > [x] Timestamp logs: [timestamp_format]
For example, I use the format [mm/dd HH:nn] which prints out [01/27 14:48], and assume the year will appear in the log's filename. You can use any format you choose as instructed in /help $asctime