Search the Community
Showing results for tags 'timezone'.
-
I was wondering if there is a way to automatically get a user's timezone? I want to show certain information if the user's current date is less than the expiry date. It works fine if the user is in a default timezone but what if the user is in a different timezone? How I can I make sure I can get their correct current time? date_default_timezone_set('America/New_York'); $expiry_date = trim($row['expiry_date']); $current_date = date('Y-m-d H:i:s'); if($current_date < $expiry_date) { // show data } else { // don't show }
-
How to automatically detect user timezone name? Like Europe/Stockholm How to automatically detect user locale? Like sv_SE Or its easier to let user to select their timezone and locale?
-
Hello How can I create a user friendly timezone select menu using PHP, like the one in General account setting of PHPFreaks. thanks !
-
Hello sorry if the English is not good Is there any way to get client's timezone or hours difference using PHP and JAVASCRIPT so the time is displayed based on the client's timezone, because I've created a small PHP script and when I upload it to the server, the time was displayed based on the server's timezone. Thank's in advance, Have a good day.
- 4 replies
-
- php
- javascript
-
(and 1 more)
Tagged with: