mrthuanvn / wot-xvm

Automatically exported from code.google.com/p/wot-xvm
GNU General Public License v3.0
0 stars 0 forks source link

No PhpDate format available in battle clock #608

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My clock format is "g:ia", which should display something like 8:09am. The 
clock in battle loading displays the time correctly. However, the clock during 
gameplay displays the format literally: "g:ia".

Version: xvm-5.0.2-test1

xvm config: https://docs.google.com/file/d/0B1l931vbdcrKT1JhbnNHbERETGc/view

xvm log: https://docs.google.com/file/d/0B1l931vbdcrKaGUzcnRZcWVsQ0U/view

screenshot of battle loading with correct clock: http://i.imgur.com/obj498k.jpg

screenshot in game with literal format instead of clock: 
http://i.imgur.com/EjASjeG.jpg

Original issue reported on code.google.com by Rouslan....@gmail.com on 25 Dec 2013 at 4:14

GoogleCodeExporter commented 9 years ago
The clock in battle loading is using PhpDate (AS3), that's why your date got 
correctly formatted. However, the battle clock is using a custom date 
formatting function because PhpDate isn't available under AS2 (not sure about 
that).

The IG clock only supports the following date tags: Y, M, D, H, N, S.

Porting PhpDate to AS2 (or integrating it in XVM-AS2) would fix the issue, but 
that's beyond my knowledge.

Original comment by edgar.fo...@gmail.com on 25 Dec 2013 at 8:57

GoogleCodeExporter commented 9 years ago

Original comment by edgar.fo...@gmail.com on 27 Dec 2013 at 2:13