php and a Date question?
Posted: Fri Jan 25, 2008 11:43 pm
hello,
first of all, i just know the basics of php and am familiar with mysql basically. so, i'm not like really good at this stuff.
i have a huge issue with time & date in php and don't really have a solution, because there are so many things you have to consider.
what i want to do is display is the current time and date.. (format doesn't really matter) First issue is that the normal php date function takes the date and time from the computer clock. and when the computer clock is wrong the wrong date / time will be displayed, right? Second problem is that people from all over the world will come to my site, so i have to display the right time of each timezone.
i think this is all you have to worry, when you program an personal message system, right? i really hope that somebody can help me, either with telling me exactly which functions to use and how i do that stuff or maybe somebody know a free script that can do what i want to do. so, i hope i can get some good advice here, thanks a lot guys ...
first of all, i just know the basics of php and am familiar with mysql basically. so, i'm not like really good at this stuff.
i have a huge issue with time & date in php and don't really have a solution, because there are so many things you have to consider.
what i want to do is display is the current time and date.. (format doesn't really matter) First issue is that the normal php date function takes the date and time from the computer clock. and when the computer clock is wrong the wrong date / time will be displayed, right? Second problem is that people from all over the world will come to my site, so i have to display the right time of each timezone.
i think this is all you have to worry, when you program an personal message system, right? i really hope that somebody can help me, either with telling me exactly which functions to use and how i do that stuff or maybe somebody know a free script that can do what i want to do. so, i hope i can get some good advice here, thanks a lot guys ...