change code of specifying date string

When <span class="author"> includes comments, date is not the last content. So how about to use the content with index 2 instead of -1?