Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5969507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:14:27+00:00 2026-05-22T20:14:27+00:00

I am using timeago jQuery plugin for my blog, but there seems to be

  • 0

I am using timeago jQuery plugin for my blog, but there seems to be a problem with the timing itself, and I cant put my finger and what the cause of the problem is.

Its currently May 31st, 2011 02:30 local time here (GMT+DST). Now the example date I have used is… May 31st, 2011 02:01. The following tag for this would be

<abbr class="timeago" title="2011-05-31T02:01:44+00:00">May 31st, 2011</abbr>

Yet the jQuery outputs that the date is “32 minutes from now”, Its one hour ahead for some reason.

Anyone know what I’m doing wrong here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:14:27+00:00Added an answer on May 22, 2026 at 8:14 pm

    Hazarding a guess here so I might be quite wrong.

    The problem is that the test timesatmp you’ve specified has an offset of 0 so it’s the same as UTC – but that’s not the same as your time when following DST in the GMT timezone.

    GMT is the same as UTC i.e. the offset is 0. However, you mention DST and when following Daylight Savings Time, your clock moves forward by 1 hour and so does your UTC offset. So your time right now, with respect to UTC, is actually UTC + 0100. That’s where the extra hour is coming from.

    It might help to convert all times to UTC first, after all, that’s what it’s for, right? 02:30 GMT while following DST is 01:30 UTC. So compared to this, the test timestamp of 02:01 UTC, is about a half hour in the future – hence the 32 minutes from now.

    If you were expecting to see 30 minutes ago instead, your test date should have been 2011-05-31T01:01:44+00:00 in order to express a UTC timestamp that was equivalent to the time of 02:01 by your clock display.


    The safest solution would be to use UTC timestamps always – this is how SO, Facebook and Twitter date their posts. The UTC timestamp can then be unambiguously interpreted and formatted for each user’s timezone.

    Your job, then, would be to make sure the timestamp you use is not simply what you see on your clock face, but the UTC equivalent of it – in your current timezone, the UTC time could be 1 hour behind the time displayed. And depending on what you’re using to generate your HTML, you should be able to find a function, built-into the language/platform or as a third-party library, that will give you the UTC equivalent of the current time displayed on your clocks in your timezone considering DST.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using PHP/MySQL and the jQuery timeago plugin. Basically, I need to
I am using Jquery plugin http://timeago.yarp.com/ for showing time. Issue is timeago will not
I have this jQuery ajax navigation tabs plugin that I created using some help
I've been using the timeago plugin (http://timeago.yarp.com/), it has been working fine on my
I've got a tweaked version of the jQuery TimeAgo plugin.. the only tweaking is
I have never used Prototype before. But now when I'm using Rails, it seems
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using C# and System.Data.SqlClient, is there a way to retrieve a list of parameters
I've read a time ago about generate xml from Java using annotations, but I'm
I started using jQuery Mobile some time ago, and as those that know jQuery

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.