<div dir="ltr">Thanks Jackie,<div><br></div><div>I gave this a try without any luck.  It seems Fusion.SelectionPanel is undefined and I don't see any way to access the SelectionPanel. I think I should be OK with writing the code inside the function, I just need help getting hooked into the right place.</div><div><br></div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 15 Aug 2018 at 08:19 Jackie Ng <<a href="mailto:jumpinjackie@gmail.com">jumpinjackie@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok, this is the "problem"<br>
<br>
In MGOS 2.5 and older, Fusion hits several sets of PHP scripts to get<br>
selection properties (one of which being Selection.php)<br>
<br>
>From 2.6 onwards, as part of optmizing the roundtrip of viewer selections,<br>
we made a enhanced version of QUERYMAPFEATURES in the mapagent and modified<br>
Fusion to hit that instead.<br>
<br>
However, the mapagent serves datetime values over the wire in a<br>
locale-neutral format (yyyy-mm-dd hh:mm:ss). Fusion has no date/time<br>
formatting specifics in the selection panel so it displayed such date/time<br>
values as-is.<br>
<br>
Selection.php in Fusion must've taken server locale into consideration when<br>
it wrote out its datetime values.<br>
<br>
The easiest solution I can think of is to introduce a new startup hook in<br>
Fusion that lets you customize the date/time display formatting.<br>
<br>
So in your template, you'd call something like this before the main<br>
Fusion.initialize():<br>
<br>
Fusion.SelectionPanel.setDateTimeFormatter(function(dateStr) {<br>
    //dateStr will be in yyyy-mm-dd hh:mm:ss<br>
    //return a formatted version to your liking<br>
});<br>
<br>
- Jackie<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html</a><br>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapguide-users</a></blockquote></div>