# Set UTC problem?

**URL:** <https://forum.kirupa.com/t/set-utc-problem/312273>\
**Category:** Uncategorized\
**Created:** [July 29, 2010, 1:13pm UTC](https://forum.kirupa.com/t/set-utc-problem/312273 "2010-07-29T13:13:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![palanivelrajan](https://avatars.discourse-cdn.com/v4/letter/p/a9a28c/32.png) [@palanivelrajan](https://forum.kirupa.com/u/palanivelrajan)\
**Post date:** [July 29, 2010, 1:13pm UTC](https://forum.kirupa.com/t/set-utc-problem/312273/1 "2010-07-29T13:13:37Z")

</div>

I added in my application universal time, and I gave start and stop time. The process is going smoothly, but if I change my system (local) time, the entire time will be changed. Is there any solution to solve this problem?

Example code:-

```
     var UTC_timefixing:

```

var local time:Date=new Date();

UTC\_timefixing = new Date();  
UTC\_timefixing.setUTCHours(  
UTC\_timefixing.getUTCHours()  
UTC\_timefixing.getUTCMinutes()  
UTC\_timefixing.getUTCSeconds()  
);

var time\_diff:Number;

time\_diff=timefixing .gettime() - local time.time();
