ASP.NET DateTime.Now appeared frozen on a single page
I had a pretty strange problem this morning with one of my websites.  The date reporting for some user selected days was off by one day.  The website allows users to select from three days ('Today', 'Tomorrow', and 'Day After Tomorrow') then translates the selected day into an actual date (today would look like '12/14').

The page was working fine last night, but it somehow appears when midnight rolled over the day did not update to the current day.

The page uses .Net `DateTime.Now` to get the current date then offsets the day by +0, +1, or +2 depending on the users selected day.

I checked the system time on the site and it was correct.  DateTime.Now was also working just fine on other pages in the website.

I ended up just republishing the entire site (minus web.config) to the server and it fixed the problem.  But my question is, how did this happen in the first place?  I am just kind of curious what could cause DateTime.Now to not update on a single page and would like to prevent it from happening again.

The site is hosted using IIS on a Windows Server 2008 R2 virtual machine.

Let me know if more information is needed and I will do my best to update the question.

Thanks,
ASP.NET DateTime.Now appeared frozen on a single page
===

I had a pretty strange problem this morning with one of my websites.  The date reporting for some user selected days was off by one day.  The website allows users to select from three days ('Today', 'Tomorrow', and 'Day After Tomorrow') then translates the selected day into an actual date (today would look like '12/14').

The page was working fine last night, but it somehow appears when midnight rolled over the day did not update to the current day.

The page uses .Net `DateTime.Now` to get the current date then offsets the day by +0, +1, or +2 depending on the users selected day.

I checked the system time on the site and it was correct.  DateTime.Now was also working just fine on other pages in the website.

I ended up just republishing the entire site (minus web.config) to the server and it fixed the problem.  But my question is, how did this happen in the first place?  I am just kind of curious what could cause DateTime.Now to not update on a single page and would like to prevent it from happening again.

The site is hosted using IIS on a Windows Server 2008 R2 virtual machine.

Let me know if more information is needed and I will do my best to update the question.

Thanks,