hydra1983 / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

AirFileTarget set timezone #148

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've used this library to implement logging for an air application.
Everything works fine except that when logging to file i get utc datetime 
instead of the right timezone. 

Logger is created with this line

LOGGER_FACTORY.setup = new SimpleTargetSetup(new MergedTarget(new 
org.as3commons.logging.setup.target.TraceTarget(), new AirFileTarget(logPath)));

Notice that the TraceTarget works fine.

I've tried to see if there is a way to force it to use "local time" but i 
couldn't find one.
As today i'm getting logged records where time differs of 2 hours from real 
local time.
Is there something i can do or something i am doing wrong?

Thank you 
M.

Original issue reported on code.google.com by zikaelis...@gmail.com on 2 Apr 2015 at 12:49