issue_206_parseDate_dst.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link href='../../dist/fullcalendar.css' rel='stylesheet' />
  5. <link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' />
  6. <script src='../../node_modules/jquery/dist/jquery.js'></script>
  7. <script src='../../node_modules/moment/moment.js'></script>
  8. <script src='../../dist/fullcalendar.js'></script>
  9. <script>
  10. // set your time to Tehran time (GMT+03:30)
  11. // (recreated on a Windows XP machine, after restarting)
  12. $(document).ready(function() {
  13. var date = new Date();
  14. var d = date.getDate();
  15. var m = date.getMonth();
  16. var y = date.getFullYear();
  17. $('#calendar').fullCalendar({
  18. year: 2010,
  19. month: 2,
  20. header: {
  21. left: 'prev,next today',
  22. center: 'title',
  23. right: 'month,agendaWeek,basicWeek,agendaDay,basicDay'
  24. },
  25. editable: true,
  26. events: [
  27. {
  28. title: 'Yay Tehran!',
  29. start: '2010-03-21' // should NOT show up on the 20th
  30. //allDay: false // if uncommented, will show 1am
  31. // HOWEVER, when set to 2010-03-21T00:30:00, this ends up being 2010-03-21T01:30:00
  32. // should it be 2010-03-21T01:00:00 instead!!??
  33. }
  34. ]
  35. });
  36. });
  37. </script>
  38. <style>
  39. body {
  40. margin-top: 40px;
  41. text-align: center;
  42. font-size: 13px;
  43. font-family: "Lucida Grande",Helvetica,Arial,Verdana,sans-serif;
  44. }
  45. #calendar {
  46. width: 900px;
  47. margin: 0 auto;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <div id='calendar'></div>
  53. </body>
  54. </html>