Thanks Jackie, 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.
Thanks On Wed, 15 Aug 2018 at 08:19 Jackie Ng <jumpinjac...@gmail.com> wrote: > Ok, this is the "problem" > > In MGOS 2.5 and older, Fusion hits several sets of PHP scripts to get > selection properties (one of which being Selection.php) > > From 2.6 onwards, as part of optmizing the roundtrip of viewer selections, > we made a enhanced version of QUERYMAPFEATURES in the mapagent and modified > Fusion to hit that instead. > > However, the mapagent serves datetime values over the wire in a > locale-neutral format (yyyy-mm-dd hh:mm:ss). Fusion has no date/time > formatting specifics in the selection panel so it displayed such date/time > values as-is. > > Selection.php in Fusion must've taken server locale into consideration when > it wrote out its datetime values. > > The easiest solution I can think of is to introduce a new startup hook in > Fusion that lets you customize the date/time display formatting. > > So in your template, you'd call something like this before the main > Fusion.initialize(): > > Fusion.SelectionPanel.setDateTimeFormatter(function(dateStr) { > //dateStr will be in yyyy-mm-dd hh:mm:ss > //return a formatted version to your liking > }); > > - Jackie > > > > -- > Sent from: > http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html > _______________________________________________ > mapguide-users mailing list > mapguide-users@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________ mapguide-users mailing list mapguide-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapguide-users