This is due to the fact that the Java java.util.Date class
represents dates in GMT. So, possible solutions:
1) Label all dates in the application as GMT
2) Use the Calendar object for all dates (Calendar object
takes Locale into account). However, we would then have to
somehow feed the user's preference for locale into the
Calendar object and then show him all dates in his locale.
This is probably the most user-friendly approach.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1103702
No matter how you set your timezone, it has no affect on the
time stamp posted on comments.
Logged In: YES
user_id=595643
This is due to the fact that the Java java.util.Date class
represents dates in GMT. So, possible solutions:
1) Label all dates in the application as GMT
2) Use the Calendar object for all dates (Calendar object
takes Locale into account). However, we would then have to
somehow feed the user's preference for locale into the
Calendar object and then show him all dates in his locale.
This is probably the most user-friendly approach.
Logged In: YES
user_id=1103702
No matter how you set your timezone, it has no affect on the
time stamp posted on comments.