1. factormystic
  2. HUD Time
  3. Issues
Issue #2 new

localization

Anonymous created an issue

Hello, is it possible to use local settings for date/time display ? thanks

Comments (5)

  1. Anonymous

    no. Win7, localization : France, time / date in taskbar : 23:55 15/01/2010 time / date in this gadget : 11:55 PM january 15 friday

    thanks

  2. David-Lee Kulsch

    I know this an old thread ;) but well found via google.

    For changing to 24h Format: C:\Users\USERNAME\AppData\Local\Microsoft\Windows Sidebar\Gadgets\HUD-Time.gadget\js\gadget.js:

    var meridiem = hours >= 12 ? ' PM' : ' AM';
    if(hours == 0) {
        hours = 12;
    }
    
    toTime.value = hours > 12 ? (hours-12) + minutes + meridiem : hours + minutes + meridiem;
    
    in 
    
    //  var meridiem = hours >= 12 ? ' PM' : ' AM';
    //  if(hours == 0) {
    //      hours = 12;
    //  }
    
    toTime.value = hours + minutes ;
    
  3. Log in to comment