mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-30 18:33:30 +00:00 
			
		
		
		
	 9b46b02717
			
		
	
	
		9b46b02717
		
			
		
	
	
	
	
		
			
			Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			204 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			204 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import os
 | |
| import time
 | |
| 
 | |
| from dify_app import DifyApp
 | |
| 
 | |
| 
 | |
| def init_app(app: DifyApp):
 | |
|     os.environ["TZ"] = "UTC"
 | |
|     # windows platform not support tzset
 | |
|     if hasattr(time, "tzset"):
 | |
|         time.tzset()
 |