โญ Support Time.now: Join our Premium Plan for an ad-free experience! โญ Support Us: Go Premium Ad-Free!

WIB to PST Converter

Category: Time Zone Converters

Western Indonesian Time (WIB)

UTC+7 โ€ข Jakarta, Medan, Bandung

Conversion Settings

Configure your timezone conversion preferences

Pacific Standard Time (PST)

UTC-8 โ€ข Los Angeles, Seattle, Vancouver
--:--:--
Select a time to convert
Time Difference: --
UTC Offset (WIB): +7
UTC Offset (PST): -8
DST Status: --
WIB Time: --
PST Time: --
Time Format:
Current WIB: --:--:--
Current PST: --:--:--
๐ŸŒ WIB is always UTC+7 and never changes. PST is UTC-8 (standard time) or UTC-7 (daylight time).

WIB to PST Conversion Guide

What is WIB to PST Conversion?

WIB to PST conversion helps you translate time between Western Indonesian Time and Pacific Standard Time. WIB is always UTC+7 year-round. PST is UTC-8 during standard time and PDT is UTC-7 during daylight saving time. The time difference varies between 14-15 hours depending on whether PST or PDT is in effect.

Time Zone Information

Western Indonesian Time (WIB): Used in western Indonesia including Jakarta, Sumatra, and Java. Always UTC+7.
Pacific Standard Time (PST): Used on the US/Canada west coast during standard time (November-March). UTC-8.
Pacific Daylight Time (PDT): Used during daylight saving time (March-November). UTC-7.

Time Difference Variations

PST Period (Nov-Mar): WIB is 15 hours ahead of PST
PDT Period (Mar-Nov): WIB is 14 hours ahead of PDT
WIB Consistency: Indonesia never observes daylight saving time, so WIB remains constant year-round

Common Conversion Examples

Business Hours (WIB to PST)
WIB 9:00 AM โ†’ PST 6:00 PM (previous day)
WIB 5:00 PM โ†’ PST 2:00 AM
15-hour difference during standard time
Business Hours (WIB to PDT)
WIB 9:00 AM โ†’ PDT 7:00 PM (previous day)
WIB 5:00 PM โ†’ PDT 3:00 AM
14-hour difference during daylight time
International Calls
WIB 8:00 PM โ†’ PST 5:00 AM
WIB 8:00 PM โ†’ PDT 6:00 AM
Evening WIB to early morning PST/PDT
Flight Schedules
WIB Midnight โ†’ PST 9:00 AM (previous day)
WIB Midnight โ†’ PDT 10:00 AM (previous day)
Date often changes due to large time difference

Conversion Tips & Best Practices

โ€ข WIB is 15 hours ahead during PST period (November-March) and 14 hours ahead during PDT period (March-November)
โ€ข Indonesia never observes daylight saving time, making WIB calculations consistent year-round
โ€ข Date changes frequently occur when converting WIB to PST/PDT due to the large time difference
โ€ข Best meeting times: WIB 9 PM-midnight corresponds to PST 6-9 AM (or 7-10 AM during PDT)
โ€ข WIB covers Jakarta, Medan, Bandung, and most populated areas of Indonesia
โ€ข PST covers major cities like Los Angeles, Seattle, and Vancouver

The WIB to PST converter performs a WIB to PST conversion of a date and time in Western Indonesian Time into Pacific Time using fixed offsets and a custom daylight-saving helper. The arithmetic runs through Date.UTC with manual hour subtraction, not through a zone database lookup. Formatting helpers then label the result for display but do not change the underlying calculation.

Key points:

  • WIB is treated as UTC+7 year-round; the code never applies a DST shift to Indonesia.
  • Pacific Time is treated as UTC-8 in standard time and UTC-7 when the custom DST helper says daylight time is active.
  • The code converts the input to UTC milliseconds, then formats that instant in the other zone.
  • Controls such as Auto Convert, Show Seconds, and Show UTC Offset affect output labels or timing, not the offset math.
Jump to a section

What the calculator does

The converter accepts a date, a time, and a selected input zone. It then displays the equivalent time in the other zone. The output includes a main converted time, a time-difference label, WIB and Pacific offsets, a DST status message, and formatted WIB and Pacific date-time strings.

It also shows live clocks for WIB and Pacific Time. Those clocks use toLocaleTimeString with Asia/Jakarta and America/Los_Angeles to read the current time in each zone, but they are separate from the conversion path. For a similar task starting from Pacific Time, the PST to WIB converter performs the same kind of conversion with Pacific Time as the starting zone.

How inputs are parsed and defaulted

The calculator collects the following inputs:

  • Date: a date input field, defaulting to today's date in WIB via setDefaultTime.
  • Time: a time input field, defaulting to the current WIB hour and minute.
  • Input timezone: a dropdown with WIB (Asia/Jakarta) selected by default and Pacific Time as the other option.
  • Auto Convert: the checkbox starts checked in the markup, but the variable autoConvert starts as false until the change handler sets it. When checked, date and time changes run convertTime immediately.
  • Daylight Saving Aware: checked by default; dstAware starts as true.
  • Show UTC Offset: unchecked by default; showOffset starts as false.
  • Show Seconds: checked by default; showSeconds starts as true.
  • Time Format: starts as 12 Hour because is24HourFormat starts as false.

The buttons act on these inputs in distinct ways. Convert Time runs convertTime directly. Swap flips the selected input zone and updates the zone labels, then converts again if the output is not blank. Now fills the date and time fields with the current clock in the selected input zone and runs a conversion. Reset restores the default WIB start, reloads today's default time, and clears the output.

Keyboard shortcuts trigger the same actions when focus is not inside an input or select element: Space or Enter converts, S swaps, N sets now, R resets, and F toggles the 12/24-hour format.

Code path from input to UTC

The conversion function convertTime reads the date input, the time input, and the values dstAware and inputTimezoneStr. It extracts the year, month, day, hour, and minute from the strings. It then chooses a numeric offset based on the selected input zone:

  • WIB (Asia/Jakarta): the offset is set to +7 with no DST check.
  • Pacific Time (America/Los_Angeles): the offset is -7 if dstAware is true and the custom isDateInUS_DST helper returns true; otherwise the offset is -8.

After picking the offset, the code calls Date.UTC(year, month_0_11, day, hour - utcOffset, minute). This creates a UTC timestamp in milliseconds. It is elapsed-time arithmetic: the code shifts the clock hour by a fixed number of hours and treats the result as UTC. No Intl or IANA lookup is used inside this step.

Once the UTC timestamp exists, updateDisplay formats it with toLocaleTimeString and toLocaleDateString, passing Asia/Jakarta and America/Los_Angeles as the target zones. These formatting calls read the browser's zone data for display, but the offset choice has already been made by the manual branch above. The same isDateInUS_DST result also sets the DST status label and the time-difference label.

How PST and PDT are chosen

The isDateInUS_DST helper builds two local Date objects for the calendar year of the input: one for the second Sunday in March at 2:00 AM and one for the first Sunday in November at 2:00 AM. It then checks whether the input date falls between those two points. The month is taken from the selected date string, not from the current system time.

This is a simplified rule. It reflects the current rough shape of United States daylight-saving transitions, but it is not a lookup against a zone database. The IANA Time Zone Database records representative location-based civil-time rules and changes over time, and NIST explains United States daylight-saving transitions; other jurisdictions can use different rules.

Two details matter for reading the output. First, the helper uses local Date construction inside the browser, so the comparison runs in the browser's local calendar, not in Pacific Time. Second, the offset branch for Pacific Time uses the same helper result. When Daylight Saving Aware is off, the helper result is not applied to the offset and Pacific Time is always treated as UTC-8.

Worked examples

The WIB to PST Converter examples below follow the calculator's actual input and output path.

Both examples start from the default WIB input zone, leave Daylight Saving Aware on, and keep Show Seconds off so the time strings are shorter. The date arithmetic uses the fixed offsets in the code and does not cross a DST transition.

Example 1: WIB to PST in January

Input: WIB date 2024-01-15, time 10:00.

  1. WIB offset = +7. Date.UTC(2024, 0, 15, 10 - 7, 0) becomes the instant 2024-01-15 03:00 UTC.
  2. January is outside the custom March-to-November DST window, so Pacific offset = -8.
  3. Formatting in Los Angeles gives 2024-01-14, 7:00 PM PST.

Output: 7:00 PM, Jan 14, 2024 (PST), with a time-difference label of 15 hours.

Example 2: WIB to PDT in June

Input: WIB date 2024-06-15, time 10:00.

  1. WIB offset = +7. Date.UTC(2024, 5, 15, 10 - 7, 0) becomes the instant 2024-06-15 03:00 UTC.
  2. June is inside the custom March-to-November DST window, so Pacific offset = -7 and the label is PDT.
  3. Formatting in Los Angeles gives 2024-06-14, 8:00 PM PDT.

Output: 8:00 PM, Jun 14, 2024 (PDT), with a time-difference label of 14 hours.

In both examples the date changes because the conversion crosses midnight on the Pacific side. That is normal elapsed-time behavior for a 14- or 15-hour offset.

Blank, invalid, and edge-case inputs

The code handles these situations in distinct ways.

  • Blank date or time: convertTime calls resetDisplay and returns early. The result area shows --:--:-- and the placeholder text, not an error.
  • Parsed but out-of-range parts: if the strings cannot be parsed into numbers, the Date.UTC call may produce an invalid date. The code catches that case and calls resetDisplay.
  • Impossible calendar dates: the native date input blocks many impossible strings before they reach the script. If an invalid date somehow passes through, the resulting Date may normalize or become invalid; the code either formats a normalized date or resets the display.
  • Negative years or very large years: the code does not add a range check. Date.UTC accepts a wide range, but browser support and date-input behavior for extreme years are not guaranteed.

There is no special message for malformed or out-of-range input; the display simply resets.

Display settings and their effects

The four checkboxes and the format button change the output in these specific ways:

  • Auto Convert: when checked, date and time changes run convertTime immediately. The script variable starts as false but the checkbox starts checked, so the first change after load activates auto-convert.
  • Daylight Saving Aware: when unchecked, the Pacific offset branch ignores the DST helper and always uses -8. The time-difference label then always says 15 hours, and the DST status text says DST awareness is disabled.
  • Show UTC Offset: switches offset text between short forms like +7 and -8 and longer forms like +07:00 and -08:00. It does not change the arithmetic.
  • Show Seconds: adds or removes the seconds field in the formatted times. Live clocks update on the next tick; converted output updates through the usual conversion path.
  • Time Format: toggles between 12-hour and 24-hour display. The button label switches between "12 Hour" and "24 Hour".

The timezone formatting helpers use toLocaleTimeString and toLocaleDateString with Asia/Jakarta and America/Los_Angeles identifiers for display. Their presence does not mean the conversion arithmetic used IANA rules; the offset selection in convertTime is still manual. For a different starting zone, the AEST to PST converter and the BST to PST converter are separate tools with their own implementations.

Common pitfalls with WIB to PST

Small assumptions can cause large errors with a 14- or 15-hour gap.

  • Forgetting the date change: the Pacific date is often one day earlier than the WIB date. Always read the date line, not just the clock time.
  • Assuming IANA arithmetic: the conversion uses fixed offsets plus a custom DST helper. The IANA Time Zone Database records representative location-based civil-time rules and changes over time, so historical offsets or future rule changes may differ from what this code produces.
  • Turning off DST awareness by mistake: with DST awareness off, June in Los Angeles is treated as UTC-8 instead of UTC-7, so the result is one hour later than Pacific daylight time actually is.
  • Confusing PST with PDT: the output label uses PST or PDT based on the custom helper. When DST awareness is off, the label stays PST even for summer dates.
  • Mixing up Indonesian zones: this tool handles WIB only. Other parts of Indonesia use different offsets, so a date or time from those areas needs a different starting assumption.

For related starting zones, the PT to WIB converter shows how the same style of manual offsets can appear in another direction.

How this WIB to PST calculator works step by step with the WIB to PST Converter

This calculator uses a manual offset approach with a custom DST helper for Pacific Time. Other converters may use different methods, such as direct IANA-based arithmetic or different DST rules for other regions. For example, the PDT to NZST converter handles a different pair of zones with its own offset logic.

Because the arithmetic here is offset-based, it will not reflect historical rule changes or future adjustments unless the code is updated. The IANA Time Zone Database records representative location-based civil-time rules and changes over time, so a database-backed converter might produce different results for historical dates.

Frequently asked questions about WIB to PST Converter

What is the time difference between WIB and PST?

The calculator labels the difference as 15 hours during standard time and 14 hours during daylight time. That matches its offset choices of +7 for WIB and -8 or -7 for Pacific Time.

Does Indonesia observe daylight saving time?

No. The code always uses +7 for WIB and never applies a DST shift to it. NIST explains United States daylight-saving transitions; other jurisdictions can use different rules, and Indonesia is one of them.

How does the calculator decide between PST and PDT?

It uses the isDateInUS_DST helper, which checks whether the selected date falls between the second Sunday in March and the first Sunday in November of that year. This is a simplified custom rule, not a zone-database lookup.

What happens if I turn off Daylight Saving Aware?

The Pacific offset branch always uses -8, so every result is treated as PST. The time-difference label stays at 15 hours, and summer dates will be one hour off from Pacific daylight time.

Read next: 25 Facts About Daylight Saving Time