Dates on a website I maintain display fine, until I log in (as an admin). Then they are off by minus one day.
I figured this is because the timestamps are then displayed in UTC while they should be displayed in UTC+1. And since UTC is one hour off, days display one day off.
I could hunt down every piece of code displaying dates and hard code them to always display as UTC+1 (which is what I want), but I have a feeling there might be an easier, global way to fix this.
Check your timezone settings. Drupal must be using it for displaying dates.
Related
I am using a planning calendar where I am displaying the appointments. I am showing the calendar from 7AM to 5PM. But I want the Hour format to be in 24-hour format, like after 12PM it should be 13, 14, 15.. likewise.
It seems like hour format for planning calendar depends on browser locale. For example for me (Europe, Poland) hours are in 24hours format.
It is related to Launchpad settings:
You can set it default in transaction SU01 tab defaults for selected user or You could do massive change in SU10. If You need more information You could find it in 2404186 SAP Note launchpad.support.sap.com/#/notes/0002504186
It's not the most ideal answer, but the 12/24 can be influenced by the locale. For example, adding the URL parameter sap-locale=ES (or sap-language) would use the 24 hour setting because that's how the locale is defined. You could also do it by calling:
sap.ui.getCore().getConfiguration().setFormatLocale()
before rendering with a locale (as string) which uses 24hr.
It may be possible to extend locales to have a special one that has a 24hr format, but the rest of the settings being the same, but I couldn't find any examples of how to do this, and it's not immediately apparent to me.
edit: if English is necessary, locales such as "en_GB", "en_IE" or "en_ZA" may be used.
That doesn't work for us, my Fiori launchpad is set to 24hr as well as in SU01 backend system, but the Planning Calendar still shows 12PM.
Any other suggestions?
I am administrating a company FB channel and currently I am trying to upload images of the brand's history. However, the upload feature freezes when I add an image or posting prior to 1970-1-1. I guess that's an issue with the database and related to the UNIX timestamp. Does anyone have a hint for me?
They are possibly using epoch timestamps which can not contain dates prior to 1/1/1970. In anycase... This is a bug and should be reported to Facebook at their Bug System
For what it's worth, text posts and milestones can still be backdated before the Unix epoch, just not photos or videos.
I've had the same problem too for almost on two months. (Three bug reports didn't change anything!)
I can confirm that milestones can be placed before 1970. Thanks. I have sent numerous bug reports to FB about the problem with photos with no results. I guess no one over 42 works at Facebook.
It appears that Facebook is only using epoch timestamps to determine IF they want to save the date now.
Before I could set the date to before the UNIX timestamp, and they still appear correctly. However, if you want to change the date you can only choose a date of 1 January 1970 or later.
It amazes me that this bug still hasn't been fixed.
Yes, thank you! posting milestones do work prior to 1/1/1970 including with photos. I added a milestone and tried both adding a photo (from the existing photo gallery) at the same time as posting the milestone and editing the milestone after it was posted to add the photo. Not tried video yet (as I don't have any moving images prior to 1970!). See FB for Swords Aviation. You do need to set the start date of your timeline prior to the date you want to post of course.
All the day numbers and week days on twitter bootstrap date picker show up in only one column. Could you help me?
This happens when the css part of the datepicker is missing. Grab the less file from https://github.com/twitter/bootstrap/pull/657/files and incorporate it to your system, or take it directly in css from the link you posted
I am storing dates in a core data data file whenever the user uses my app and then displaying them back to the user. For some reason, just every now and again, i get an entry with the the right day and year but the month has dropped back to the fires. Has anyone heard of this happening in the past and know how to fix it?
Everything seems unaffected (ie time, days and years) except month. It only ever changes to january (IE it either works right eg 23/5/2011 or it defaults to january eg 23/1/2011)
Thanks to anyone who can shed some light on this or can even point me in the right direction as to finding the problem as so far it looks random
thanks
Found my issue. It wasn't random, it only happens when I quit the app then go back in. I wasn't handling the date correctly when I feed it back into the app.
I'm parsing an.ics file that includes time stamps of events like this:
20101008T230000Z
This is, as far as I understand, expressed in UTC.
Now, I want my app to display this time correctly, depending on the time zone where the iPhone user resides. So, as an example, if the user would be in London, the time would be displayed as '23:00' while in Amsterdam it would be '22:00'
I've been looking at similar questions here at STackOverflow, and it only confused me.
Any help is greatly appreciated.
Hopefully this helps. Read the time into an NSString and use the complementary function in NSDateFormatter (dateFromString) after setting the time zone as shown in the link. You should then be able to get a local date/time from the NSDate object's description and descriptionWithLocale functions.