multithreading - .net UI Thread taking wrong culture -


there weird problem application code facing. have wpf application (desktop) in .net 4.0. uses third party control devexpress.

this application being supported wcf windows service, in .net 4.0

through our logs, noticed in wpf application, main gui thread has taken culture such datetime.now in thread gives time of 1 hour behind i.e. if system time 1.20 pm, gui thread (through datetime.now) gives 12.20 pm.

however, other threads in application e.g. timer threads or background worker thread giving correct time.

in wcf windows service also, noticed main thread running services or timers within service fine. however, have created new thread (using thread t = new thread()) , thread taking wrong culture i.e. datetime.now in thread return 12.20 pm instead of 1.20 pm.

it mysterious us. can please help?


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -