Page MenuHomePhabricator

Date / Day off by one!
Closed, ResolvedPublic

Description

Author: inter

Description:
I have posted a message here on
http://www.mediawiki.org/wiki/Project:Support_desk#March_18th.2C_2007_on_MONDAY...._Two_days_on_one_date

I think you can confirm it on your site if you add 9:00 to GST and make language
preference to "ja".

quote

Hi, I have just made a Japanese site that Mediawiki is installed on the server
which takes GST as Mediawiki recommend 9 hour adjustment. Though today is
"Sunday, March 18th", it shows "MONDAY, March 18th". It used to show "Sunday,
March 18th" till at least 14:44 JST as the picture on the right shows. The
reason for it is probably that dates and days are differently programmed.

on dates, it is precisely indicated.
on days, they made it just add a day for GST-based servers to JST clients.

    as a result, if GST area is on Saturday, it makes JST area on Sunday,

which is correct. However once GST area becomes on Sunday, JST area becomes
Monday while the date is precise at JST, just like "Monday, March 18th", 2007.

I think the solution is to make days be calculated from the adjusted time not
calculated from GST time.

thanks


Version: 1.10.x
Severity: major

Details

Reference
bz9325

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:40 PM
bzimport set Reference to bz9325.

*** Bug 10394 has been marked as a duplicate of this bug. ***

Changing priority to high, major as it seems English users don't know
how rediculous this looks all day long to Asian users as the problem
dissapears if one uses uselang=en, as the day disappears.

It is downright dangerous, as users looking at the day will think one
thing, and at the date will think another, and base decisions on it.

Imagine announcing the meeting will be held "Thursday the 25th".
So some users will come on Thursday, and some on the 25th.
Only those who accidentally somehow realized that Thursday was not in
fact the 25th, or the 25th was not in fact Thursday, would realize
that they've got a problem: their computer, the same one that passed
the Y2K crises OK, is now giving drunk driver schizophrenic date
messages.

Never mind the historical accuracy of the encyclopedia, just at least
get the calendar for the year 2007 straight.

Does the UNIX date(1) command calculate the day in one timezone, and
the date in another? No.

This was fixed by r23017, which fixed bug 8577. Upgrade to 1.11 when it's released or install the patch from that revision.