Are your attributes using the same localize value?
Exactly one day or 1 hour and therefore maybe one day earlier? F.e. At one place you use the utc time and the other place the session time which is in a different timezone?
This is almost certainly a time localization issue. These links may be useful in understanding the situation better: