Date and time in silverlight + ria services -
i'm facing weird problem in sliverlight 4 + ria services, or maybe it's not weird , i'm newbie anyway hope here can help, problem following i've created function on server side inside domain service function simple , has line in adds server current date , time database (it's hr application , employees should sign in , out thrue each it's own pc )
emp.timeout = system.datetime.now (c# syntax)
the weird part users adds 3 hours current time(exp if signs out @ 5 shows 8) , others works perfectly.
the server , stations in company have same time settings , same time zone, , anyway function on server side should no related users time.
any ideas why happening? i've been trying find out why days no luck.
you need use utc values ... everwhere there serialization involved ... whether db or client. convert local time when appropriate display/human readin (and in case of input)
Comments
Post a Comment