OpenERP installed on Windows Server time display incorrect resolution

Source: Internet
Author: User

Tag: Style color file problem CTI C

This problem has been bothering me, background settings about the time zone also referred to some articles (such as changing the configuration file), display time is always 8 hours, and later looked at the above article before the fix, although that is to solve OE7.0, but the principle of the same:

Server\openerp\addons\web\static\src\js\dates.js

23 lines, the following red font is the original:

Openerp.web.str_to_datetime = function (str) {
if (!STR) {
return str;
}
var regex =/^ (\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d) (?: \. \d+)? $/;
var res = regex.exec (str);
if (!res) {
throw new Error ("'" + str + "is not a valid datetime");
}
var obj = date.parseexact (res[1] + "UTC", ' yyyy-mm-dd HH:mm:ss zzz ');
if (! obj) {
throw new Error ("'" + str + "is not a valid datetime");
}
return obj;
};

Switch

var obj = date.parseexact (res[1], ' yyyy-mm-dd HH:mm:ss ')

Restart OE service OK.

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.