by Robert Smalc.
In moodle 2.4 I created a custom user field: birthday (Date/Time). Then I upgrade moodle to the last version 2.5.1 and birthday hasn't been saved right.
When I enter: 30.1.1950 and update profile it will show me 29.1.1950 and query filed for database has a value -628740000 (28.1.1950). Next time when I will just update my user profile it will count down for 1 day and it will show 28.1.1950 (database date will be 27.1.1950).
Where can I find function which is responsible for this and do you have any idea why have this happened?