Timeline for Salesforce Date/Time formats in Javascript
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 15, 2014 at 9:52 | comment | added | Abhinav Gupta | Thanks @regal, good to know about salesforce1 using moment.js. | |
Apr 14, 2014 at 6:54 | comment | added | Ashwani | @AbhinavGupta I agree that it is trickier to use. But I believe this the best solution right now. Even Salesforce uses moment.js in their Salesforce1 app. | |
Mar 29, 2014 at 20:12 | comment | added | Abhinav Gupta | Agree with @PeterKnolle, we are trying to resolve such issues, as they go terrible in Javascript, when browser/os timezone/locale differs from Salesforce user's timezone/locale. That will be another big discussion altogether, which is out of scope for this questions, so not adding any more here. For now key for me is to get salesforce formats correctly. | |
Mar 29, 2014 at 20:09 | comment | added | Abhinav Gupta | Thanks @Regal, we are already using MomentJS, but this lib needs correct dose of salesforce user's timezone and date format to work correctly. | |
Mar 29, 2014 at 11:53 | comment | added | Peter Knolle | It is a bit trickier with Salesforce, because Users may have locales and timezones that are different than the JavaScript functions would return (i.e., User could have different timezone/locale set on their User record in SFDC than what the browser would detect). | |
Mar 29, 2014 at 11:37 | history | answered | Ashwani | CC BY-SA 3.0 |