datetime issue in stock balance repory