Last modified: 2011-03-13 18:06:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10264 - Include server time in JS output
Include server time in JS output
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-14 23:52 UTC by Carl Fürstenberg
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

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


Attachments
example implementation (420 bytes, patch)
2007-06-14 23:52 UTC, Carl Fürstenberg
Details

Description Carl Fürstenberg 2007-06-14 23:52:58 UTC
Created attachment 3769 [details]
example implementation

As not every computer on this planet is synked against the servers I suggest to include the server time in the output. Following patch is an example how to. Though javascript really wants the timestamp in milliseconds, but php's 32 bits wont handle that. But a near second I feel is enough.
Comment 1 Rob Church 2007-06-15 00:24:56 UTC
What for?
Comment 2 Carl Fürstenberg 2007-06-15 00:30:05 UTC
When handling user scripts, it can sometimes be necessary to know if a given comment was posted one minute ago, or 21 minutes ago. As not all computers are synked to the wikipedia servers, it might result in some strange results otherwise (like a comment that is in the future). 
Comment 3 Brion Vibber 2007-06-15 14:10:44 UTC
This is incompatible with caching requirements; cached pages would give the time of the previous page generation, which would just cause weird inconsistent behavior in anything expecting that to be "current" time.

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


Navigation
Links