[HUBZERO][#4676][PLG_TIME_*] make functions appropriately static and fix db reference issues
[HUBZERO][#4676][PLG_TIME_*] make functions appropriately static and fix db reference issues

zooley/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms,zooley/hubzero-cms,zweidner/hubzero-cms,anthonyfuentes/hubzero-cms,zweidner/hubzero-cms,zooley/hubzero-cms,zooley/hubzero-cms,anthonyfuentes/hubzero-cms