Announcement

Collapse
No announcement yet.

How to set your time zone for NxFilter.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set your time zone for NxFilter.

    NxFilter uses system time zone but sometimes you want to specify your time zone for NxFilter directly. You can do this by modifying NxFilter startup script file. If it's on Linux, you need to modify /nxfilter/bin/startup.sh. Inside the file, set your timezone like below,

    Code:
    #!/bin/sh
    cd $(dirname $0)
    cd ..
    export NX_HOME=$PWD
    export PATH=$PATH:/usr/bin:/usr/local/bin
    case $1 in
    '-d')
        nohup java -Duser.timezone="America/Phoenix" -Djava.net.preferIPv4Stack=true -Xmx768m -Djava.security.egd=file:/dev/./urandom -cp $NX_HOME/nxd.jar:$NX_HOME/lib/*: nxd.Main > /dev/null 2>&1 &
    ;;
    *)
        java -Duser.timezone="America/Phoenix" -Djava.net.preferIPv4Stack=true -Xmx768m -Djava.security.egd=file:/dev/./urandom -cp $NX_HOME/nxd.jar:$NX_HOME/lib/*: nxd.Main
    ;;
    esac
    On Windows, it's startup.bat file.
    Last edited by support200; 06-28-2022, 09:22 PM.
Working...
X