In other words, a function module named 'event calendar 'has been encountered in the project recently ',
Therefore, jquery + ashx is used to complete (you need to dynamically draw the calendar AR ),
Similar to Google Calendar,
In the near future, you will experience the following in vnet :-),
The server uses the json.net serialized object to return JSON format data,
The result shows that the date is always not correct. After debugging, we find that the date is in GMT format, orz...
Fortunately, json.net is open-source. Now, let's take a look at the time zone. t.t ..
Someone proposed a more harmonious method, that is, to modify the source code of json.net, minus the current time zone ....
If you think about it, give up the "Harmony" method and solve it on the client,
Year, month, date, hour, minute... all values in UTC format:
E.g.: D. getutcmonth ()..
OK, solve the problem ^!