ASP.NET application shows previous date than stored in MySQL -
my web application built in asp.net mvc 5 backend mysql. both application , database deployed on same web server.
the issue date in grid (jqgrid) shown 1 day before date saved in database, i.e. if mysql database has column has 15-may-2015 jqgrid shows 14-may-2015.
this issue when application deployed on server. application works when working in development environment on local machine.
i have noticed time stored along date, , if time part 00:00:00 grid output previous day. server location australia
the issue has been resolved using function tolocaltime() date column in asp.net mvc resultset.
Comments
Post a Comment