https://bugzilla.wikimedia.org/show_bug.cgi?id=32351
--- Comment #8 from Van de Bugger <[email protected]> 2011-11-19 13:15:49 UTC --- > …It doesn't entirely seem right to me to have the empty string be the user > pref,… Why? It is a normal practise -- if no argument is explicitly specified, some default is used. The only minor difference that it is not named but positional argument, so I cannot completely omit it, but leave it empty instead. > Although, one could also just combine #time and #dateformat to achieve the > same affect. Do not see how. #dateformat does not accept time and do not accept timezone. It works with dates only. So, it is possible to get formatted date: {{ #formatdate: {{ #time: Y-m-d | 2011-11-10 01:00 YAKT }} }} But how to format time? I did not find a way. > Often times you want to display the same info to everyone (for example in user > signatures, the common argument is that if they were all user time, then when > people copied and pasted the time to someone else, people would get confused > what the actual time is, since different people would see different times. > Server time often represents where the majority of the user base is located. > For example Korean Wikimedia projects use the time zone Asia/Seoul as server's > local time zone. I believe #time is exact for such a case -- when you want to display the same info for everybody. BTW, nowadays, every timestamp should include timezone not to confuse what actual time is. Korean Wikipedia is a good example… But I guess there are many Korean-speaking people in the USA. And there are countries which do not fit into one timezone. And I am from such a country, so I have to worry about users in multiple timezones. However, I have a thought… If all the timestamps are in UTC, and properly formatted, for example: <span class="time">2011-11-10T23:00:15UTC</span> it would be easy to translate it to user timezone and format with user preferences on the client side with JQuery script. Do you know how to pass user preferences to the client? Ok, let us get back to #time and #timel. You do object against #timel to be a user local time. If I change it to be a local server time will it be enough to apply the patch? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
