Entrance Events! Chat Gallery Search Everyone Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 19, 2025 - @215.08 (what is this?)
Activity rating: Four Stars Posts & Arts: 88/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts Start New Topic  Submit Art
News: ozwomp is requesting your location  :ozwomp: [Agree] Super News: Upload a banner!

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Time Zone Converter | Need Help With Code


« previous next »
Pages: [1] Print
Author Topic: Time Zone Converter | Need Help With Code  (Read 44 times)
tanuki
Casual Poster ⚓︎
*


Surfing the Web

⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: tanuki
iMood: tanuki
XMPP: Chat!
RSS: RSS

View Profile WWWArt

Great Posts PacmanCubone, I Choose You!Joined 2024!
« on: April 12, 2025 @796.22 »

I am trying to write up a Time Zone Converter for my website but running into an issue where changing the Time Zone from a drop-down does not accurately re-calculate the converted time.

I am trying to have it so if you change the time or time-zone for section A, then it will automatically adjust section B. And vice-versa. I believe I have the Date-Time portion working correctly, but changing timezones doesn't appear to be adjusting as expected.

Could anyone please take a look and provide any suggestions?

You can view the source for this on My Codeberg

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update: Updated a bit and now I have the Time / Time Zone conversion working when changing the Time on Section A, or the TimeZone on Section B. These use the 'a_to_b' functionality. When I try to convert the Time from B to A, B's current time is posted into A instead of converted to A's Timezone. Similarly, Changing A's timezone will update A's time but based off of its original value instead of B's. Hopefully that makes sense!

It seems that I cannot update the Time/Date in Section A based on changes done to section B

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update 2: Uploaded to my site: https://pieceofthepie.neocities.org/tools/timezone_converter in a semi-working state. I am using the Input type of 'datetime' instead of 'datetime-local' as I believe this was the reason I could not adjust the TimeZone (even when doing the conversion method recommended online).
« Last Edit: April 13, 2025 @746.38 by tanuki » Logged
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

Deltarune Chapter 2 and The Goner Code

Started by DoctorScreechBoard ♖ ∙ Video Games

Replies: 0
Views: 4126
Last post December 03, 2021 @256.40
by DoctorScreech
Your favourite gaming platform of all time (all time!)

Started by MemoryBoard ♖ ∙ Video Games

Replies: 18
Views: 3721
Last post April 16, 2025 @557.53
by pan
Whats your life like? (Time Capsule Thread)

Started by MelooonBoard ⚚ ∙ Life on Earth!

Replies: 54
Views: 7698
Last post April 11, 2025 @711.62
by AY38910

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi