I have a web app and some people in Asia are seeing some weird time zone issues with the dates in the program. Is there a way to fake chrome or firefox or IE to pretend like my computer's timezone is like theirs so I can debug the issues easily?
            Asked
            
        
        
            Active
            
        
            Viewed 8,711 times
        
    2 Answers
14
            
            
        Sure: launch the browser from the command line with a customized TZ environment variable instead of the way you normally run it:
TZ=Japan firefox &
Make sure firefox isn't already running when you launch it like this because if it is already running then it will probably just open a new window under the existing instance of the browser instead of starting a new instance.
 
    
    
        Celada
        
- 21,627
- 4
- 64
- 78
- 
                    Is there a way to do this without using command line? E.g. is there a way to do this using chrome flags (e.g. `--TZ` which I tried but didn't work)? – Pacerier Apr 09 '16 at 14:42
- 
                    I don't think any applications provide a command line option for this since it's pretty trivial to use the environment variable instead. Why do you need to avoid using the environment variable? – Celada Apr 09 '16 at 19:23
- 
                    1I'm trying to do it in from a Windows shortcut. (something like [--user-data-dir](https://www.chromium.org/user-experience/user-data-directory#TOC-Windows)). – Pacerier Apr 13 '16 at 17:03
- 
                    This worked when using a command line in ubuntu, but it didn't work with from a command line in windows 10. – TryHarder Jan 16 '17 at 01:22
4
            
            
        Changing the system time in Windows 8 does auto change my Firefox browser timezone without reboot or relaunch of the sofware.
 
    
    
        JeeShen Lee
        
- 3,476
- 5
- 39
- 59
- 
                    Works in linux too (linux mint) just changed the system timezone and loaded chrome. Used http://pellepim.bitbucket.org/jstz/ to test – Karthik T Apr 19 '14 at 02:55
