Purchasing an ASP space outside of China causes the issue of early Article release time-different time zones

Source: Internet
Author: User
Tags time zones
ASP time zone conversion problems

Original code, strdatetime = now () because the space is in the United States, this obtains how to write the time in the United States, which can be converted to Beijing time.

The US West time is the West 8 Area, Beijing time is the East 8 area, that is, the US West time is 16 hours slower than the Beijing time, So Beijing time = US West time + 16 hours get: strdatetime = dateadd ("H", 16, now (): The United States has four time zones: West, Central, central, and east. The western region is two hours slower than the central region, two hours slower than the eastern region, and the western United States is 16 hours slower than the Beijing time (Standard Time, excluding the Beijing time ).

If you buy VPs, you can also change the system time zone to the east 8 zone, so that you do not need to modify the original code.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.