Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

IAS – Detect Client TimeZone

115 views5 days agoAutomation script IAS
3
Bautista Solanet [SLC] [DevOps Advocate]551 6 days ago 1 Comment

Hello Dojo,

I've had a few use cases recently related to how LCAs automatically convert DateTimes to the Client's TimeZone. What I'd like to know is if there is any way in an IAS or Ad Hoc Data Source to detect what the TimeZone we would be converting to. Very frequently, we see users try to use a script that requires a DateTime and they get confused as to what TimeZone the DateTime is in. I'd like to be able to determine and display that TimeZone as to avoid this confusion.

Thank you,

Bauti

Peter Vanpoucke [SLC] [DevOps Advocate] Answered question 5 days ago
Alija Kusur [SLC] [DevOps Advocate] commented 5 days ago

Hi Bautista,
I guess you should be able to be aware of the time zone you are providing from the script. For example, if you are getting dateTime from the connector column, you will be converting it to a DateTime object with DateTime.FromOADate(oaDateTime), after what you will maybe convert it local time with ToLocalTime(). In this case, you need to know the local time zone, which should be available in TimeZoneInfo.Local.

I hope this helps you a bit. Let me know if you had specific use case you would like to discuss.

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
0
Peter Vanpoucke [SLC] [DevOps Advocate]1.15K Posted 5 days ago 0 Comments

Hi Bautista

It is possible to get the time zone or its offset in a IAS when a user selects a date and time in a time and calendar component. The methods GetClientTimeZoneInfo or GetClientDateTime on the UI result were introduced in DataMiner 10.5.4/10.6.0 for this purpose. They're also available in the toolkit using the ClientTimeZoneInfo and ClientDateTime properties. That information can then be displayed in another component.

However, this currently requires user interaction with the UI before the information becomes available. A feature request has been submitted to allow retrieving this information before displaying the UI and without requiring user interaction.

Would this approach cover your use case?

Kind regards

Peter Vanpoucke [SLC] [DevOps Advocate] Edited answer 5 days ago
You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin