Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Convert with local Time Zone

(0) ShareShare
ReportReport
Posted on by 2

Using Power Automate, I am converting .eml files to PDF. When opening the PDF, the internet header information shows UTC and I need it to show as Pacific Time Zone. The file (.eml) is correctly displayed when opened, but the convert function does not update the Time Zone.

.eml file

ThomasVa_0-1709239122658.png

PDF file

ThomasVa_2-1709239244692.png

 

Is there a way to adjust?

 

Power Automate Flow:

ThomasVa_3-1709239380212.png

The Time Zone is for naming convention.

  • creativeopinion Profile Picture
    10,450 Super User 2025 Season 1 on at
    Re: Convert with local Time Zone

    @ThomasVa You aren't actually using the Converted time in any of your subsequent actions.

     

    Use a Manual Trigger

    To help speed up your flow building process—I would recommend using a Manual Trigger. I cover how to do this section of one of my recent YT Tutorials. This way you don't need to leave Power Automate to send an email—you can quickly trigger tests on a single email while you build out your flow.

    creativeopinion_1-1709260811985.png

     

    Convert Time Zone Action

    I'm assuming you want to convert the time the email was received. In that case, you don't need the Current Time action. You can use the Received Time dynamic content from the Get Email (V2) — or the flow trigger (when you change it to the automated trigger)

     

    creativeopinion_2-1709260877097.png

     

     

    Compose Email Content

    Use a Compose action to Compose the HTML for the email. I couldn't figure out a way to edit the .eml file—this was a lot easier to put together.

     

    You can customize the HTML to suit your requirements. It's a very basic structure. Insert the dynamic content from the Get Email (V2)— or the flow trigger action. 

     

     

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
    <p>From: [From Dynamic Content]</p>
    <p>Sent on: [Converted Time Dynamic Content]</p>
    <p>To: [RecipientDynamic Content]</p>
    <p>Subject: [SubjectDynamic Content]</p>
    
    <p>Body: [Body Dynamic Content]</p>
    </body>
    </html>

     

     

    creativeopinion_5-1709261277981.png

     

    Create HTML File

    Add a Create file action. Use the .html extension. Insert the output from above into the File Content field.

    creativeopinion_7-1709261520052.png

    Run a test.

     

    creativeopinion_4-1709261254571.png

    Convert to PDF

    Add a Convert File action and convert the HTML file to a PDF. Then add a Create File action to create the PDF file.

    creativeopinion_8-1709261752013.png

    Run a test.

    creativeopinion_9-1709261774706.png

     

    You can add a Delete File action if you'd like to delete the original HTML file. 

     

    You might be interested in this YT tutorial: Send Emails Based on a 📆 Date Column in SharePoint with Microsoft Power Automate

    In this Microsoft Power Automate tutorial, I’ll show you how to build a flow that will send a Happy Birthday email to a user based on a date column in a SharePoint list.

     

    The SharePoint list also contains a column with a Manager’s name which we’ll use to send a three-day and day of reminder to the user’s manager.

     

    This automation will use the Filter Array action to filter out all SharePoint list items where the user’s birthday is today or in three days.

     

    This flow can apply to a variety of scenarios such as:

    📅 Student Birthdays

    📅 Project Due Dates

    📅 Contract/Membership Renewals

    📅 License Expirations

    📅 Client Anniversaries


    IN THIS VIDEO:

    How to Send an Email based on a Date Column in SharePoint

    Using the Recurrence Trigger in Power Automate

    How to Use the Filter Array Action with multiple conditions

    How to Get Dynamic Content from a Filter Array Action

    How to Get a Date Three Days from Today

    How to Create a Dynamic Date Based on utcNow()

    How to Return a Count of Items

    How to initialize and set a variable

    How to use the Send an Email (V2) action

    How to send test emails

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
     

     

     

  • ThomasVa Profile Picture
    2 on at
    Re: Convert with local Time Zone

    The two Convert time zones are used to get the current date format for the end naming convention.

  • creativeopinion Profile Picture
    10,450 Super User 2025 Season 1 on at
    Re: Convert with local Time Zone

    @ThomasVa Can you explain the the reason for two Convert Time Zone actions? Also, can you expand the actions in your flow and upload a screenshot?

     

    In the meantime, you might find this YT Tutorial helpful:  5 Power Automate Troubleshooting FAQs and Helpful Tips for Creating Better Flows

     

    In this tutorial I cover:

     How to troubleshoot a false Condition action result

     How to get dynamic content when it isn’t selectable from the list of dynamic content

     How to troubleshoot an Apply to Each action that isn’t looping through

     How to troubleshoot a skipped Apply to Each action

     How to troubleshoot a Filter Query

     How to use a SharePoint yes/no column in a Filter Query

     How to use Compose actions to troubleshoot a Power Automate flow

    How to troubleshoot multiple emails being sent

     How to troubleshoot multiple Teams messages being sent

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1