Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum Using Copy-PWDocumentsBetweenDatasources appears to set the datetime stamp Incorrectly.
    • Sign In

    • State Not Answered
    • Replies 12 replies
    • Subscribers 66 subscribers
    • Views 490 views
    • Users 0 members are here

    Using Copy-PWDocumentsBetweenDatasources appears to set the datetime stamp Incorrectly.

    blotto
    Offline blotto 7 months ago

    using Copy-PWDocumentsBetweenDatasources appears to set the datetime stamp for Create and file update as 8 hours off. Example: source create time = 2/19/2003 5:28:03 PM and the target after the copy process = 2/19/2003 9:28:03 AM.

    I did test out with a copy/drag to both sources a file and the timestamp is correct so it is not the server time that is the problem.

    is there utc option that is not being account for? PST settings?

    • Sign in to reply
    • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Tue, Feb 28 2023 12:11 PM

      What version of PWPS_DAB are you using and what version is your servers?

      There was a fix for a date/time issue back in 1.24.1.0, but that was a while ago. also current servers keep date/times in the databse in UTC and convert to local time on display, but if you have an older server that doesn't support that then the date/times are stored in the timezone the server uses and maybe the script is adjusting them thinking they are in UTC.

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • blotto
      0 Offline blotto Tue, Feb 28 2023 12:35 PM
      Servers are 2016.
      Dab version is 2.2.1
       
      Brian Otto
      IT Specialist – JST CAD Support
      Bonneville Power Administration
      (360) 619-6893
       
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Tue, Feb 28 2023 12:38 PM in reply to blotto

      sorry, i meant the version of ProjectWise server, not the OS

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • blotto
      0 Offline blotto Tue, Feb 28 2023 12:45 PM
      10.0.3.299 for both datasources
       
      Brian Otto
      IT Specialist – JST CAD Support
      Bonneville Power Administration
      (360) 619-6893
       
      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    • Kevin van Haaren
      0 Offline Kevin van Haaren Tue, Feb 28 2023 9:43 PM in reply to blotto

      Ah, that server version is using UTC time so it's probably a bug in the cmdlet.

       

      • Cancel
      • Vote Up 0 Vote Down
      • Sign in to reply
      • Verify Answer
      • Cancel
    >

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies