PDT to BRT Converter
Category: Time Zone ConvertersNeed a Different Conversion?
This tool is specific for PDT to BRT. For any other cities or time zones around the world, use our flexible Universal Time Zone Converter.Pacific Daylight Time (PDT)
UTC-7 • Los Angeles, Seattle, VancouverConversion Settings
Configure your timezone conversion preferencesBrasília Time (BRT)
UTC-3 • São Paulo, Rio de Janeiro, BrasíliaPDT to BRT Conversion Guide
What is PDT to BRT Conversion?
PDT to BRT conversion helps you translate time between Pacific Daylight Time and Brasília Time. PDT is UTC-7 during daylight saving time (March to November), while PST is UTC-8 during standard time. BRT is always UTC-3 and never changes. The time difference varies: BRT is 4 hours ahead during PDT season and 5 hours ahead during PST season.
Time Zone Information
Daylight Saving Time Impact
Common Conversion Examples
Conversion Tips & Best Practices
This PDT to BRT Converter translates a wall-clock date and time between Pacific Time and Brasília Time. It reads the date and time fields, picks a fixed UTC offset using the selected input zone and a custom Pacific daylight saving check, builds a UTC timestamp with Date.UTC, and then formats that timestamp with the browser's toLocaleTimeString and toLocaleDateString for display. The arithmetic uses hard-coded offsets and a custom DST rule, not the IANA Time Zone Database; only the display step uses IANA zone identifiers.
Key points:
- Pacific Time is treated as UTC-7 when the custom DST check says the date is in daylight saving, and UTC-8 otherwise.
- Brasília Time is always UTC-3 in the code, with no DST branch.
- The displayed time difference is 4 hours during Pacific DST and 5 hours otherwise.
- The custom DST window uses the browser's local date fields, not Pacific-local fields.
- Live clocks and formatting helpers do not change the conversion result.
- What this converter does
- Inputs and defaults
- How the converter picks offsets
- The custom Pacific DST helper
- From input to result, step by step
- Two verified worked examples
- Empty, malformed, and extreme inputs
- What the output displays
- Common questions about PDT and BRT
- PDT to BRT conversion in practice with the PDT to BRT Converter
What this converter does
The page is a bidirectional wall-clock converter designed to convert Pacific Time to Brasília Time. You type a date and a time, choose whether the input is Pacific Time or Brasília Time, and the tool shows the matching wall time on the other side. It also prints a time difference label that helps calculate Pacific to Brasília time difference, UTC offset labels, a DST status label, and formatted date lines for both zones.
Because the two zones are stored as fixed offsets inside the converter, the output is only as good as those offsets. The code does not query the IANA Time Zone Database, does not look up historical rules, and does not use Intl formatting to decide the arithmetic offset. For a parallel route, the ET to BRT converter is a separate tool with its own inputs; do not assume it shares this tool's DST helper.
Inputs and defaults
The visible inputs are:
- Date (
#pdt-date) and Time (#pdt-time): parsed asYYYY-MM-DDandHH:MMstrings usingsubstringandparseInt. - Input timezone (
#input-timezone): a dropdown with two options. The default isAmerica/Los_Angeles; the other isAmerica/Sao_Paulo. - Auto Convert (
#auto-convert): checked in the HTML, but the JavaScript variableautoConvertstarts asfalse. The variable only flips totrueafter a change event fires on the checkbox, so on first load the input fields do not auto-convert. - Daylight Saving Aware (
#dst-aware): checked in HTML, and the variabledstAwarestarts astrue. When this is off, Pacific Time is treated as UTC-8 for every date. - Show UTC Offset (
#show-offset): startsfalse, so offsets show as-7and-3. When on, the code prints-7:00style strings by appending:00. - Show Seconds (
#show-seconds): startstrue, and the code adds asecondoption to theIntlformatting options, so the output time strings include seconds. - Time Format button: starts as "12 Hour" and flips an
is24HourFormatboolean.
On load, the code fills the date and time fields with the current America/Los_Angeles wall time using getPartsForTimezone. Pressing Now re-fills the fields with the current time in the selected input timezone, then converts. Pressing Reset restores the default Pacific input and clears the display.
How the converter picks offsets
The conversion function reads the two text inputs and the timezone dropdown, then sets a single utcOffset number. For Pacific Time, it computes:
utcOffset = isInDst ? -7 : -8;
For Brasília Time, it always sets utcOffset = -3. There is no lookup table and no zone database call in that branch.
Once the offset is chosen, the code builds a UTC timestamp with:
Date.UTC(year, month_0_11, day, hour - utcOffset, minute)
Because utcOffset is negative for both zones, subtracting it adds hours. A 3:00 PM Pacific input with utcOffset = -7 becomes hour - (-7) = hour + 7, so the UTC timestamp is 10:00 PM UTC. That UTC Date object is then handed to toLocaleTimeString and toLocaleDateString twice, once with America/Los_Angeles and once with America/Sao_Paulo, to build the display strings.
The IANA Time Zone Database is a real registry of civil-time rules and changes, but this converter's arithmetic does not read it. For a parallel Brazil route, the KST to BRT converter is a separate page with its own implementation.
The custom Pacific DST helper
When dstAware is true, the code calls isDateInUS_DST(date) on a timezone-less Date built from the parsed year, month, day, hour, and minute. That Date is interpreted in the browser's local zone because no timezone argument is supplied. The helper then builds two more local Date objects:
- A start boundary:
new Date(year, 2, 8, 2), thensetDate(14 - getDay()), which lands on the second Sunday in March. - An end boundary:
new Date(year, 10, 1, 2), thensetDate(7 - getDay()), which lands on the first Sunday in November.
The date is considered in DST when it is greater than or equal to the start boundary and strictly less than the end boundary. NIST explains that United States daylight-saving transitions occur on specific dates and times, and that other jurisdictions can use different rules; this helper hard-codes the current United States Pacific pattern and does not model historical rule changes. Brazil's DST history is also not modeled here; BRT is a flat -3 in this code.
From input to result, step by step
Here is the full path for a Pacific input:
- Parse. The date string is split with
substringinto year, month, and day. The month is converted to zero-based by subtracting 1. The time string is split into hour and minute. Seconds are never read, even when the output shows them. - Check for missing input. If either field is empty,
resetDisplay()runs and the result area shows placeholders. - Pick an offset. Pacific inputs call the custom DST helper when
dstAwareis on and pick-7or-8. Brasília inputs always pick-3. - Build a UTC instant.
Date.UTC(...)assembles the timestamp. If the assembled date isNaN, the code throws and falls into the catch block, which callsresetDisplay(). - Format.
updateDisplayrunstoLocaleTimeStringandtoLocaleDateStringwithAmerica/Los_AngelesandAmerica/Sao_Pauloand writes the results into the output nodes. - Label. The time difference label is chosen as 4 hours when the Pacific side is in the helper's DST window, and 5 hours otherwise.
Two verified worked examples
The PDT to BRT Converter examples below follow the calculator's actual input and output path.
Both examples use ordinary dates that are clearly inside or outside the custom DST window, so no transition boundary is crossed. The display formatting uses the built-in America/Los_Angeles and America/Sao_Paulo data, which is the only place IANA-style zone data enters the path.
Example 1: July 15, 2025 at 3:00 PM, input Pacific
- July 15, 2025 is inside the custom DST window, so
utcOffset = -7. Date.UTC(2025, 6, 15, 15 - (-7), 0)=Date.UTC(2025, 6, 15, 22, 0), which is 22:00 UTC.- Formatting that instant in
America/Sao_Paulogives 7:00 PM BRT on the same date. - The Pacific display line gives 3:00 PM PDT. The time difference label reads 4 hours.
Example 2: January 15, 2025 at 3:00 PM, input Pacific
- January 15, 2025 is outside the custom DST window, so
utcOffset = -8. Date.UTC(2025, 0, 15, 15 - (-8), 0)=Date.UTC(2025, 0, 15, 23, 0), which is 23:00 UTC.- Formatting that instant in
America/Sao_Paulogives 8:00 PM BRT on the same date. - The Pacific display line gives 3:00 PM PST. The time difference label reads 5 hours.
East coast schedules are covered by a different page; the EST to BRT converter has its own inputs and offsets. If you need to go the other direction, the BRT to EST converter is a separate route.
Empty, malformed, and extreme inputs
Different bad inputs take different paths through the code:
- Empty date or time:
convertTimesees a falsy value and callsresetDisplay(). The display reverts to placeholders and the offsets fall back to-7and-3labels. - Malformed string: The parser assumes fixed character positions. A shorter string yields
NaNfromparseInt, which makesDate.UTCproduce an invalid date. The code then throws inside thetryblock, logs the error, and callsresetDisplay(). It is not silently ignored; it is caught and the display is cleared. - Impossible calendar dates: If the parsed numbers cannot form a valid timestamp,
isNaN(universalDate.getTime())istrueand the same throw-and-reset path runs. - Very large or very small hours:
Date.UTCnormalizes out-of-range fields such as hour 25 or minute 90 rather than rejecting them, shifting the instant forward or backward. The output will still render, but the entered numbers no longer mean what they appear to mean.
Because checking DST uses a timezone-less Date, a browser whose local zone sits near a DST boundary can disagree with Pacific wall time by a day when the helper is evaluated. The helper is not a Pacific-local date test; it reads the browser's local fields.
What the output displays
The output area has four layers:
| Node | What controls it |
|---|---|
#converted-time and #converted-date | The opposite zone's formatted wall time and date, chosen by which zone was the input. |
#time-difference | Hard-coded as 4 hours or 5 hours based on the DST helper result. |
#pdt-offset and #brt-offset | The current offset numbers, with :00 appended only when show-offset is checked. |
#pdt-display and #brt-display | Full formatted strings for both zones, built with the same Intl options. |
Two live clocks at the bottom refresh once per second and show the current time in each zone. They use the same formatting helper, so toggling 12/24 hour or Show Seconds changes them, but they never feed the conversion result.
Frequently asked questions about PDT to BRT Converter
Does Brazil use daylight saving time in this tool?
No. The code sets utcOffset = -3 for America/Sao_Paulo unconditionally, with no DST branch.
What is the time difference at a glance?
The label shows 4 hours when the Pacific helper returns "in DST" and 5 hours otherwise. This matches the offsets: -3 minus -7 is 4, and -3 minus -8 is 5.
What if I turn off Daylight Saving Aware?
The helper is skipped and Pacific inputs are treated as UTC-8 for every date. The difference label then always reads 5 hours, even for July dates.
Why does the date sometimes move forward?
Adding the offset can push a late Pacific time past midnight in Brazil. The formatter prints whatever calendar date the UTC instant lands on in America/Sao_Paulo, which may be the next day.
PDT to BRT conversion in practice with the PDT to BRT Converter
This converter gives you a fast wall-clock answer for Pacific and Brasília times by combining two fixed offsets with a hard-coded United States DST window. It is a good fit for current scheduling questions where the default DST pattern applies. It is not a historical time-zone calculator, and it does not consult the IANA Time Zone Database for its arithmetic. Treat the output as a display of the code's own offset model, not as a legal or historical time record.
Read next: 25 Facts About Daylight Saving Time