Please sign in to comment.
MDL-32234 Library: usergetdate return different values when timezone …
…is set usergetdate should return consistent values for different timezone. There are two return path 1. If timezone is servertime, it returns getdate 2. If timezone other then servertime, it use gmstrftime, which returns string and values with leading zero. In second case, leading zero's are removed and values are type casted. One major fix is with yday, getdate returns 0 through 365, whereas %j returns 001 through 366. This has been fixed as well.
- Loading branch information...
Showing with 11 additions and 2 deletions.