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:

enter image description here

whenever change timezone, reverts this:

enter image description here

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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -