Created
          February 5, 2018 14:52 
        
      - 
      
- 
        Save vahanNasibyan/b0660c2fdda1046eb5e75ac87164d99f to your computer and use it in GitHub Desktop. 
    Where wrapper to ignore Timezone in Postgres
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const condition = { | |
| test: this.sequelize.literal( | |
| `timezone('UTC', modified::timestamptz) > '${moment( | |
| this.config.last_parse, | |
| ).format('YYYY-MM-DD HH:mm:ss +00:00')}'`, | |
| ), | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment