C
cowznofsky
We have an app load balanced across two servers, and just ran into a
date-related problem where we get different results on each server.
There is a static property that I think may be the cause, which looks
like this:
public static readonly string ZERO_TO_2_DAYS = DateTime.Now.AddDays
(2).ToShortDateString();
When trying this on my machine today I got a value of 3/11. Then when
I recompiled I got the correct value of 3/12. So I'm thinking this
might get cached.
What do you think?
date-related problem where we get different results on each server.
There is a static property that I think may be the cause, which looks
like this:
public static readonly string ZERO_TO_2_DAYS = DateTime.Now.AddDays
(2).ToShortDateString();
When trying this on my machine today I got a value of 3/11. Then when
I recompiled I got the correct value of 3/12. So I'm thinking this
might get cached.
What do you think?