|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
adjust server date/time
hi there,
i want to display a time in my website according to the time of one of the Arabic countries. and then i want to put a Note(telling ppl that this is according to that country's time) i was trying to put some calculations for the date in php, but then, that will display the time according to the client time. So, how can i do that on the server side. let's say, the host site is using linux redhat. or if iam wrong in my idea to display the date, u can correct me. thanks. |
|
#2
|
|||
|
|||
|
RE: adjust server date/time
PHP date/time functions will pull that info from the server it is being called from. Javascript date/time functions will pull from the client. If the server is not in that time zone, just adjust for the offset.
|
|
#3
|
|||
|
|||
|
RE: adjust server date/time
Quote:
anyway, someone else asked me to use gmdate() then to make some calculations based on it. i'll try to figure out how to do this, then i'll test on the real production server. thanks anyway. |
|
#4
|
|||
|
|||
|
RE: adjust server date/time
Here is an article from NetBulge explaining how to do what you want:
http://www.netbulge.com/index.php?session=0&action=read&click=open&article=1123740309 |
|
#5
|
|||
|
|||
|
RE: adjust server date/time
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > adjust server date/time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|