Last modified: 2010-01-23 12:38:06 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24240, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22240 - API: include time in siteinfo
API: include time in siteinfo
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-23 08:32 UTC by Gurch
Modified: 2010-01-23 12:38 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
patch against r61408 (515 bytes, application/octet-stream)
2010-01-23 08:32 UTC, Gurch
Details
patch against r61408 (515 bytes, patch)
2010-01-23 08:34 UTC, Gurch
Details

Description Gurch 2010-01-23 08:32:51 UTC
Created attachment 7007 [details]
patch against r61408

Knowing the server time is useful for a number of reasons; the particular reason in my case is to approximate the time difference between client and server and so get a rough estimate of the timestamp on incoming IRC RC feed items, as the feed itself doesn't provide this.

Currently, it is possible to get the server time through the API by using action=parse&text={{CURRENTTIMESTAMP}}. However, this is a bit awkward, and involves an extra request as 'parse' and 'query' actions can't be combined.

The attached patch adds a 'time' attribute to the output of meta=siteinfo, in the format used for timestamps elsewhere in the API.
Comment 1 Gurch 2010-01-23 08:34:24 UTC
Created attachment 7008 [details]
patch against r61408

apparently this new version of bugzilla doesn't recognize patches as such in the same way as the old. should work this time.
Comment 2 Sam Reed (reedy) 2010-01-23 12:38:06 UTC
r61412

Thanks Gurch, why don't you apply for commit access? You've got a fairly decent history of patches (bar that one that file sorts, and besides, no one is perfect ;))

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links