SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2010
    Posts
    197
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How does an ecommerce site determines time and date?

    Note sure this is the right place to ask this question. Recently I was on a website to buy some flowers to send to a relative. I needed the flowers to reach the person on Feb 3rd. I was ordering from India, it was already Feb 3rd in India. So the "delivery date" tool was greyed out since it was the same day delivery. But I asked my friend in USA to place the order and she could do it. The date was not greyed out since it was only Feb 2nd there in USA...

    My question is how does a website determines the time and date of the order? Does it receive that information from the customer's computer? Or IP address's time zone? How does it work? Sorry if this is too elementary ...

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,551
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    There was probably a javascript validation of the form item which used the local pc time to calculate validity. I think it would be unlikely they would go to the complexity of ip geolocation and then calculating timezones and differences


Bookmarks

Posting Permissions

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