https://bugzilla.wikimedia.org/show_bug.cgi?id=22240

           Summary: API: include time in siteinfo
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: matthew.brit...@btinternet.com
                CC: bryan.tongm...@gmail.com, s...@reedyboy.net,
                    vasi...@gmail.com, soxre...@gmail.com


Created an attachment (id=7007)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?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: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to