Home > front end >  Jquery gantt timestamp after transmission will not display the date properly
Jquery gantt timestamp after transmission will not display the date properly

Time:09-26

Jquery gantt editor, start and end of the json data parameters, adjust for 13 timestamp, but the date shown in the page and transmission completely inconsistent

Timestamp parameter: "start" : 1497024000000, "duration" : 9, "end" : 1497801599999

Display the date as shown in the screenshot

Trace code are not ripe, oneself not to reason, answer,

CodePudding user response:

Which has a problem, so don't see is the light conversion specific also look at the code is how to do

CodePudding user response:

Because digital will turn scientific computing method, suggest transfer into a string

CodePudding user response:


The gantt. This part of the code in the HTML comment out will be consistent,
//actualize data
Var offset=new Date (). GetTime () - ret. The tasks [0]. Start;
for (var i=0; iRet. The tasks [I]. Start=ret. The tasks [I] start + offset;
}

CodePudding user response:

Big brother did not solve this problem, this two days out under the control, changed some source code, can be normal use, if still need to answer will give me a message

CodePudding user response:

Can be changed by i18nJs. Js file isHoliday () function to configure the holiday
  • Related