improved localtime logic
add try_add
Merge remote-tracking branch 'origin/master' into libraries

Conflicts:
	src/core/logic/erlog_ec_support.erl