Results 1 to 2 of 2

Thread: Time zone for Browser

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    208
    Answers
    2

    Default Answered: Time zone for Browser

    Hi Guys, this question would be asked many times and answers by all lovely people. But I am writing for more clarification

    Guys, recently I was playing around with my application, I found very strange thing for date thing.
    I date and time field on my application, when I save date and time in the database, it saves as +1:00 format. My location is London when i add this it gives me as 21-Sep-2012 11:42 am. where my system time is 10:42 am.

    When I types on browser for testing, it was showing me as
    document.
    write("Last Updated on " + document.lastModified + ".");

    Last Updated on 09/21/2012 09:43:42.

    What is easiest way to store sys date in the database rather browser date.

    I am using extjs 4.0.7

  2. See if this helps:
    http://www.pageloom.com/automatic-ti...ith-javascript

    Another option would be to have the server set the date instead of the client.

    Scott.

  3. #2
    Sencha - Support Team
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410
    Answers
    716

    Default

    See if this helps:
    http://www.pageloom.com/automatic-ti...ith-javascript

    Another option would be to have the server set the date instead of the client.

    Scott.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •