0

hey guys.... anyone here know why my time here in localhost is different from the internet, let's say even though i already set my timezone to "America/New_York" the time is still different

2
Contributors
4
Replies
5
Views
4 Years
Discussion Span
Last Post by vaultdweller123
0

@pritaeas thank you for the reply sir, i thought using php date() will use the server time, not unlike javascript that uses the computer's time. Im not that good when it's comes to "time", i thought it was something about daylight saving time that causes it. i had a trouble understanding that too, this is what i tested

timezone = "America/New_York"
in my localhost = October 23, 2012 05:15:22 AM
on the internet = October 23, 2012 05:36:43 AM
so you mean, it's ok if they're not in sync?

1

When using localhost, the server is your PC. On the internet it's a PC somewhere in a hosting centre. There is no guarantee that both are synced with an (or the same) internet time server. So yes, this is an acceptable difference.

Votes + Comments
this is so embarrassing, thank you for the enlightenment sir
0

"When using localhost, the server is your PC. On the internet it's a PC somewhere in a hosting centre" OMG im so dumb, what am i thinking.... sorry i got so messed up, because i was working with the staging server and localhost simultaneously, thank you so much for the help and enlightenment sir

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.