Menu ▾ ▴

#23 Wrong time stamp on my comments

open
nobody
None
5
2004-08-20
2004-08-20
yongpak
No

I've personalized the portal to the EST time zone, but
the comments are 4 hours ahead.

Discussion

  • Nick Fu

    Nick Fu - 2004-08-20

    Logged In: YES
    user_id=1103702

    No matter how you set your timezone, it has no affect on the
    time stamp posted on comments.

     
  • Jason Williams

    Jason Williams - 2004-08-20
    • priority: 5 --> 3
     
  • Jason Williams

    Jason Williams - 2004-08-20

    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.

     
  • Nick Fu

    Nick Fu - 2004-08-20
    • priority: 3 --> 5
     
  • Nick Fu

    Nick Fu - 2004-08-20

    Logged In: YES
    user_id=1103702

    No matter how you set your timezone, it has no affect on the
    time stamp posted on comments.

     

Log in to post a comment.