Vietnam

    Nodejs.vn

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Groups
    • Search

    Lỗi thời gian của forum

    Feedback - Góp ý
    0
    3
    1337
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Quang Le
      Quang Le last edited by

      Mình mới post nhưng nó lại hiện đã post "6 hours ago". Trong User Profile thì hổng thấy phần nào cho chỉnh giờ.

      Vũ 1 Reply Last reply Reply Quote 1
      • Vũ
        Vũ Global Moderator @Quang Le last edited by

        @Quang-Le Mình sẽ liên hệ với ban quản trị hosting để thiết lập lại timezone của diễn đàn. Cảm ơn bản đã thông báo!

        Tech-nông
        Email: [email protected]
        Profile: about.me/vunb
        Github: github.com/vunb
        Twitter: twitter.com/nhubaovu

        1 Reply Last reply Reply Quote 0
        • Quang Le
          Quang Le last edited by

          Nếu server không sửa được thời gian thì mình có thể tạm khắc phục bằng cách thay đổi function timeago của Nodebb.
          Function này nằm trong public\vendor\jquery\timeago\jquery.timeago.js

              parse: function (iso8601) {
                var s = $.trim(iso8601);
          ....
                // return new Date(s); // comment out bản gốc
                // sửa lại thành
                return new Date((new Date(s)).getTime() - 21600000); //6*60*60*1000
              },
          

          Có lẽ server bạn đang host chạy Windows, nên đồng hồ không dùng UnixTime và chạy trước UnixTime 6 tiếng. Nên bây giờ mình trừ ra

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          $(document).ready(function () { app.coldLoad(); }); }