javascript - Bootstrap datetimepicker zone issue -
i have bootstrap datetimepicker installed on website, plugin: https://eonasdan.github.io/bootstrap-datetimepicker/
the problem experience whenever user has different timezone, time in datetimepicker changes aswell. (the value coming database , solid date)
so example, timezone does:
whenever change timezone, reverts this:
make 1 timezone default. either in 'connect.php' or in 'head.php'. fix it, wherever feel suitable.
date_default_timezone_set("asia/bangkok");
now, according bangkok, user's time set. fix code in page, included in each , every page. that's reason prefer in 'connect.php' or 'header.php'.
Comments
Post a Comment