how to change the time from 24 hr to regular time

justncase

New member
Feb 28, 2012
4
0
0
Visit site
i bought mystiquehaz3-hd . im using the weather time rss feed . im not sure as to where to change
the 24 to 12 and am pm can someone help me out thanks
 

justncase

New member
Feb 28, 2012
4
0
0
Visit site
help!

70 + views and no one knows how to change the time? How bout is there a place with instruction on how to fix and change themes. is this a stupid question or everyone here doesn't know either?
 

Massie

Well-known member
Feb 9, 2010
5,063
332
83
Visit site
Generally speaking, to change something like this in a theme, you need to edit some code in the theme files (it will be either an .html file or a .css file usually)--it's not just a switch in the settings app. If you want to upload those files I'll have a look and see what needs changing.

Do you know how to get those files?
 

justncase

New member
Feb 28, 2012
4
0
0
Visit site
Generally speaking, to change something like this in a theme, you need to edit some code in the theme files (it will be either an .html file or a .css file usually)--it's not just a switch in the settings app. If you want to upload those files I'll have a look and see what needs changing.

Do you know how to get those files?

anything that would help im not a novice ive looked in the files you mentioned just dont know what to do
changing 24 to 12 didn't work theres also am pm as well how does one learn in the first place how and where to apply the right settings ? I like to have days of the week as well but have no clue how to set it up wheres the instruction?

to answer your question yes and thanks for your reply and help;)
 

Massie

Well-known member
Feb 9, 2010
5,063
332
83
Visit site
Can you post the files? Often there is a section that will say "use 24 hour time" or something similar and it just needs to be enabled or disabled. In other words the code for both is generally there but only one is set to work.

Adding days of the week would require actual new code, which is a whole other thing.
 

3cit

Well-known member
Nov 6, 2011
3,044
63
0
Visit site
i bought mystiquehaz3-hd . im using the weather time rss feed . im not sure as to where to change
the 24 to 12 and am pm can someone help me out thanks
it might not even be located in the theme...
if it is information coming from a feed, the feed might set the rules...
like if the feed is sending out information, you phone is only using the information it is sent, it doesnt change it...
example...
the feed says "boo, its 23:35"
your phone sees "boo, its 23:35" and you cant change that
 

justncase

New member
Feb 28, 2012
4
0
0
Visit site
wallpaper.html from mystiquehaz3-hd

timeDisplay = document.createTextNode ( "" );
document.getElementById("clock").appendChild ( timeDisplay ); }

function updateClock ( )
{
var currentTime = new Date ( );

var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );

// Pad the minutes and seconds with leading zeros, if required
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 24 ) ? "" : "";

// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 24 ) ? currentHours - 24 : currentHours;

// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 24 : currentHours;

// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;

// Update the time display
document.getElementById("clock").firstChild.nodeValue = currentTimeString; }

function init2 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("ampm").appendChild ( timeDisplay ); }

function amPm ( )
{
var currentTime = new Date ( );

var currentHours = currentTime.getHours ( );

// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "" : "";

// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 24 ) ? currentHours - 24 : currentHours;

// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 24 : currentHours;

// Compose the string for display
var currentTimeString = timeOfDay;

// Update the time display
document.getElementById("ampm").firstChild.nodeValue = currentTimeString; }

function init3 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("calendar").appendChild ( timeDisplay ); }

function calendarDate ( )
{
var this_weekday_name_array = new Array("Sunday","Monday","Tuesday","Wednessday","Thursday","Friday","Saturday")
var this_month_name_array = new Array(". January",". February",". March",". April",". May",". June",". July",". August",". September",". Oktober",". November",". December") //predefine month names

var this_date_timestamp = new Date()

var this_weekday = this_date_timestamp.getDay()
var this_date = this_date_timestamp.getDate()
var this_month = this_date_timestamp.getMonth()

document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + ", " + " " + this_date + this_month_name_array[this_month] //concat long date string }
 

Trending Posts

Members online

Forum statistics

Threads
260,295
Messages
1,766,230
Members
441,231
Latest member
forwardsmychoice