Summary: API: include time in siteinfo
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API

Created an attachment (id=7007)
 --> (
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.

Configure bugmail:
------- You are receiving this mail because: -------
You are watching all bug changes.

Wikibugs-l mailing list

Reply via email to